public class SDCADensity<T> extends java.lang.Object implements DensityFunction<T>
Modifier and Type | Field and Description |
---|---|
boolean |
CACHED_KERNEL |
Constructor and Description |
---|
SDCADensity(Kernel<T> k) |
Modifier and Type | Method and Description |
---|---|
double[] |
getAlphas() |
double |
getC() |
int |
getE() |
Kernel<T> |
getKernel() |
boolean |
isCACHED_KERNEL() |
void |
setC(double c) |
void |
setCACHED_KERNEL(boolean cACHED_KERNEL) |
void |
setE(int e) |
void |
setKernel(Kernel<T> kernel) |
void |
train(java.util.List<T> l)
Train the density function on the specified training set
|
void |
train(T e)
Adds a sample to the training set and train the density function
|
double |
valueOf(T e)
Value of the density function for the specified sample
|
public void train(T e)
DensityFunction
train
in interface DensityFunction<T>
e
- the sample to add to the training setpublic void train(java.util.List<T> l)
DensityFunction
train
in interface DensityFunction<T>
l
- the list of training samplespublic double valueOf(T e)
DensityFunction
valueOf
in interface DensityFunction<T>
e
- the sample to evaluatepublic boolean isCACHED_KERNEL()
public void setCACHED_KERNEL(boolean cACHED_KERNEL)
public double getC()
public void setC(double c)
public int getE()
public void setE(int e)
public double[] getAlphas()