public class GeneralizedDoubleGaussChi2 extends Kernel<double[]>
Constructor and Description |
---|
GeneralizedDoubleGaussChi2(double[] gamma)
Constructor with the array of weighted for the distance
|
Modifier and Type | Method and Description |
---|---|
double[] |
getGammas() |
void |
setGamma(double gamma) |
void |
setGammas(double[] gamma) |
double |
valueOf(double[] t1)
kernel similarity to zero
|
double |
valueOf(double[] t1,
double[] t2)
compute the kernel similarity between two element of input space
|
getKernelMatrix, getNormalizedKernelMatrix, normalizedValueOf, setName, toString
public GeneralizedDoubleGaussChi2(double[] gamma)
gamma
- the array of weights for each componentpublic double valueOf(double[] t1, double[] t2)
Kernel
public double valueOf(double[] t1)
Kernel
public double[] getGammas()
public void setGammas(double[] gamma)
gamma
- inverse of std dev parameterpublic void setGamma(double gamma)
gamma
- inverse of std dev parameter