public class IndexDoubleGaussChi2 extends GaussianKernel<double[]>
| Constructor and Description |
|---|
IndexDoubleGaussChi2(int feature)
Constructor specifying the component which is used
|
| Modifier and Type | Method and Description |
|---|---|
double |
distanceValueOf(double[] t1,
double[] t2)
Tells the inner distance between two samples used by this Gaussian kernel.
|
double |
getGamma()
Tells exponential coefficient
|
void |
setGamma(double g)
Sets exponential coefficient.
|
void |
setIndex(int i) |
double |
valueOf(double[] t1)
kernel similarity to zero
|
double |
valueOf(double[] t1,
double[] t2)
compute the kernel similarity between two element of input space
|
getDistanceMatrixgetKernelMatrix, getNormalizedKernelMatrix, normalizedValueOf, setName, toStringpublic IndexDoubleGaussChi2(int feature)
feature - the index of the componentpublic double valueOf(double[] t1,
double[] t2)
Kernelpublic double valueOf(double[] t1)
Kernelpublic void setGamma(double g)
GaussianKernelsetGamma in class GaussianKernel<double[]>g - gamma coefficientpublic void setIndex(int i)
public double getGamma()
GaussianKernelgetGamma in class GaussianKernel<double[]>public double distanceValueOf(double[] t1,
double[] t2)
GaussianKerneldistanceValueOf in class GaussianKernel<double[]>t1 - first samplet2 - second sample