Package gov.nih.mipav.model.algorithms
Class LIBSVM.Kernel
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.LIBSVM.QMatrix
-
- gov.nih.mipav.model.algorithms.LIBSVM.Kernel
-
- Direct Known Subclasses:
LIBSVM.ONE_CLASS_Q
,LIBSVM.SVC_Q
,LIBSVM.SVR_Q
- Enclosing class:
- LIBSVM
abstract class LIBSVM.Kernel extends LIBSVM.QMatrix
-
-
Field Summary
Fields Modifier and Type Field Description private double
coef0
private int
degree
private double
gamma
private int
kernel_type
private LIBSVM.svm_node[][]
x
private double[]
x_square
-
Constructor Summary
Constructors Constructor Description Kernel(int l, LIBSVM.svm_node[][] x_, LIBSVM.svm_parameter param)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) double
dot(LIBSVM.svm_node[] x, LIBSVM.svm_node[] y)
(package private) abstract float[]
get_Q(int column, int len)
(package private) abstract double[]
get_QD()
(package private) double
k_function(LIBSVM.svm_node[] x, LIBSVM.svm_node[] y, LIBSVM.svm_parameter param)
(package private) double
kernel_function(int i, int j)
private double
powi(double base, int times)
(package private) void
swap_index(int i, int j)
-
-
-
Field Detail
-
x
private LIBSVM.svm_node[][] x
-
x_square
private final double[] x_square
-
kernel_type
private final int kernel_type
-
degree
private final int degree
-
gamma
private final double gamma
-
coef0
private final double coef0
-
-
Constructor Detail
-
Kernel
Kernel(int l, LIBSVM.svm_node[][] x_, LIBSVM.svm_parameter param)
-
-
Method Detail
-
get_Q
abstract float[] get_Q(int column, int len)
- Specified by:
get_Q
in classLIBSVM.QMatrix
-
get_QD
abstract double[] get_QD()
- Specified by:
get_QD
in classLIBSVM.QMatrix
-
swap_index
void swap_index(int i, int j)
- Specified by:
swap_index
in classLIBSVM.QMatrix
-
powi
private double powi(double base, int times)
-
kernel_function
double kernel_function(int i, int j)
-
dot
double dot(LIBSVM.svm_node[] x, LIBSVM.svm_node[] y)
-
k_function
double k_function(LIBSVM.svm_node[] x, LIBSVM.svm_node[] y, LIBSVM.svm_parameter param)
-
-