public class IndexDoubleGaussL2 extends GaussianKernel<double[]>
Constructor and Description |
---|
IndexDoubleGaussL2(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
|
getDistanceMatrix
getKernelMatrix, getNormalizedKernelMatrix, normalizedValueOf, setName, toString
public IndexDoubleGaussL2(int feature)
feature
- the index of the componentpublic double valueOf(double[] t1, double[] t2)
Kernel
public double valueOf(double[] t1)
Kernel
public void setGamma(double g)
GaussianKernel
setGamma
in class GaussianKernel<double[]>
g
- gamma coefficientpublic void setIndex(int i)
public double getGamma()
GaussianKernel
getGamma
in class GaussianKernel<double[]>
public double distanceValueOf(double[] t1, double[] t2)
GaussianKernel
distanceValueOf
in class GaussianKernel<double[]>
t1
- first samplet2
- second sample