fr.lip6.kernel.typed.index
Class IndexDoubleGaussL2
java.lang.Object
fr.lip6.kernel.Kernel<double[]>
fr.lip6.kernel.typed.index.IndexDoubleGaussL2
- All Implemented Interfaces:
- java.io.Serializable
public class IndexDoubleGaussL2
- extends Kernel<double[]>
Kernel on double[] that computes the L2 distance of a specified component j:
k(x, y) = (x[j]-y[j])*(x[j]-y[j])
- Author:
- dpicard
- See Also:
- Serialized Form
| Fields inherited from class fr.lip6.kernel.Kernel |
name |
|
Method Summary |
void |
setGamma(double g)
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndexDoubleGaussL2
public IndexDoubleGaussL2(int feature)
valueOf
public double valueOf(double[] t1,
double[] t2)
- Description copied from class:
Kernel
- compute the kernel similarity between two element of input space
- Specified by:
valueOf in class Kernel<double[]>
- Parameters:
t1 - first elementt2 - second element
- Returns:
- the kernel value
valueOf
public double valueOf(double[] t1)
- Description copied from class:
Kernel
- kernel similarity to zero
- Specified by:
valueOf in class Kernel<double[]>
- Parameters:
t1 - the element to compute the similarity to zero
setGamma
public void setGamma(double g)
setIndex
public void setIndex(int i)