be.ac.ulb.mlg.utils.measure.kernel
Class GaussianKernel
java.lang.Object
be.ac.ulb.mlg.utils.measure.kernel.GaussianKernel
- All Implemented Interfaces:
- Kernel
public class GaussianKernel
- extends Object
- implements Kernel
Method Summary |
double |
ker(double x,
double y)
Return the kernel value between two values (generate by kernel) |
void |
setup(double[] data,
boolean hasMissing)
Setup the Kernel for a specific vector |
GaussianKernel
public GaussianKernel()
ker
public double ker(double x,
double y)
- Description copied from interface:
Kernel
- Return the kernel value between two values (generate by kernel)
- Specified by:
ker
in interface Kernel
- Parameters:
x
- The first valuey
- The second value
- Returns:
- The difference between x,y according to the kernel
setup
public void setup(double[] data,
boolean hasMissing)
- Description copied from interface:
Kernel
- Setup the Kernel for a specific vector
- Specified by:
setup
in interface Kernel
- Parameters:
data
- The specific vectorhasMissing
- true if the specific vector contains missing value(s)