|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.learner.kernel.evosvm.Kernel
edu.udo.cs.yale.operator.learner.kernel.evosvm.EpanechnikovKernel
public class EpanechnikovKernel
Returns the value of the Epanechnikov kernel of both examples.
| Field Summary | |
|---|---|
private double |
degree
The parameter degree of the Epanechnikov kernel. |
private double |
sigma
The parameter sigma of the Epanechnikov kernel. |
| Fields inherited from class edu.udo.cs.yale.operator.learner.kernel.evosvm.Kernel |
|---|
KERNEL_DOT, KERNEL_EPANECHNIKOV, KERNEL_GAUSSIAN_COMBINATION, KERNEL_MULTIQUADRIC, KERNEL_POLYNOMIAL, KERNEL_RADIAL, KERNEL_SIGMOID, KERNEL_TYPES |
| Constructor Summary | |
|---|---|
EpanechnikovKernel()
|
|
| Method Summary | |
|---|---|
double |
calculateDistance(double[] x1,
double[] x2)
Calculates kernel value of vectors x and y. |
double |
getDegree()
|
double |
getSigma()
|
int |
getType()
Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, or KERNEL_SIGMOID. |
void |
readKernelParameters(java.io.ObjectInputStream in)
Reads the values from the given stream. |
void |
setDegree(double degree)
|
void |
setSigma(double sigma)
|
void |
writeKernelParameters(java.io.ObjectOutputStream out)
Writes the values into the given stream. |
| Methods inherited from class edu.udo.cs.yale.operator.learner.kernel.evosvm.Kernel |
|---|
createKernel, createKernel, getDistance, getSum, init, innerProduct, norm2, readKernelData, writeKernelData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double sigma
private double degree
| Constructor Detail |
|---|
public EpanechnikovKernel()
| Method Detail |
|---|
public int getType()
Kernel
getType in class Kernelpublic void setSigma(double sigma)
public double getSigma()
public double getDegree()
public void setDegree(double degree)
public double calculateDistance(double[] x1,
double[] x2)
calculateDistance in class Kernel
public void readKernelParameters(java.io.ObjectInputStream in)
throws java.io.IOException
readKernelParameters in class Kerneljava.io.IOException
public void writeKernelParameters(java.io.ObjectOutputStream out)
throws java.io.IOException
writeKernelParameters in class Kerneljava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||