public class GaussianKernel extends Kernel<java.util.Map<java.lang.Integer,java.lang.Double>>
Constructor and Description |
---|
GaussianKernel(double gamma)
Creates a Gaussian Kernel specifying the variation inverse
|
Modifier and Type | Method and Description |
---|---|
DataObject<java.util.Map<java.lang.Integer,java.lang.Double>> |
convertVector(DataObject<java.util.Map<java.lang.Integer,java.lang.Double>> x)
Transforms a DataObject into another DataObject with modifications
to be in the right format for this kernel
|
clear, compute, computeKernelMatrix, computeKernelMatrix, getBNorm, setUseCache
public GaussianKernel(double gamma)
gamma
- the parameter that gives the variation inversepublic DataObject<java.util.Map<java.lang.Integer,java.lang.Double>> convertVector(DataObject<java.util.Map<java.lang.Integer,java.lang.Double>> x) throws InvalidVectorIndexException
Kernel
convertVector
in class Kernel<java.util.Map<java.lang.Integer,java.lang.Double>>
x
- a DataObject that encapsulates the data instance to be
transformedInvalidVectorIndexException
- when the DataObject to be transformed
has occupied reserved constants