libsvm
Class Kernel
java.lang.Object
libsvm.QMatrix
libsvm.Kernel
- Direct Known Subclasses:
- ONE_CLASS_Q, SVC_Q, SVR_Q
abstract class Kernel
- extends QMatrix
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
private 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
fr
private final FeatureRepresentation fr
useExpectedValues
private final boolean useExpectedValues
Kernel
Kernel(int l,
svm_node[][] x_,
svm_parameter param)
get_Q
abstract float[] get_Q(int column,
int len)
- Specified by:
get_Q
in class QMatrix
get_QD
abstract float[] get_QD()
- Specified by:
get_QD
in class QMatrix
swap_index
void swap_index(int i,
int j)
- Specified by:
swap_index
in class QMatrix
powi
private static double powi(double base,
int times)
tanh
private static double tanh(double x)
kernel_function
double kernel_function(int i,
int j)
kernel_function
double kernel_function(int i)
dot
static double dot(svm_node[] x,
svm_node[] y,
FeatureRepresentation fr,
boolean useExpectedValues)
k_function
static double k_function(svm_node[] x,
svm_node[] y,
svm_parameter param)