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 doublecoef0private intdegreeprivate doublegammaprivate intkernel_typeprivate LIBSVM.svm_node[][]xprivate 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) doubledot(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) doublek_function(LIBSVM.svm_node[] x, LIBSVM.svm_node[] y, LIBSVM.svm_parameter param)(package private) doublekernel_function(int i, int j)private doublepowi(double base, int times)(package private) voidswap_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_Qin classLIBSVM.QMatrix
-
get_QD
abstract double[] get_QD()
- Specified by:
get_QDin classLIBSVM.QMatrix
-
swap_index
void swap_index(int i, int j)- Specified by:
swap_indexin 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)
-
-