public class GeneralizedDoubleTriangleL2 extends Kernel<double[]>
Constructor and Description |
---|
GeneralizedDoubleTriangleL2(double[] gamma)
Constructor using an array of weighted for the generalized L2 distance
|
Modifier and Type | Method and Description |
---|---|
double[][] |
distanceMatrix(java.util.List<TrainingSample<double[]>> l,
int x) |
double |
distanceValueOf(double[] t1,
double[] t2) |
double[] |
getGammas() |
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 GeneralizedDoubleTriangleL2(double[] gamma)
gamma
- the array of weightspublic 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 double distanceValueOf(double[] t1, double[] t2)
public double[][] distanceMatrix(java.util.List<TrainingSample<double[]>> l, int x)