|
|||||||||
| 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.RBFKernel
public class RBFKernel
Returns the value of the RBF kernel of both examples.
| Field Summary | |
|---|---|
private double |
gamma
The parameter gamma of the RBF 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 | |
|---|---|
RBFKernel()
|
|
| Method Summary | |
|---|---|
double |
calculateDistance(double[] x1,
double[] x2)
Calculates kernel value of vectors x and y. |
double |
getGamma()
|
int |
getType()
Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, or KERNEL_SIGMOID. |
void |
readKernelParameters(java.io.ObjectInputStream in)
Reads the value for gamma from the given stream. |
void |
setGamma(double gamma)
|
void |
writeKernelParameters(java.io.ObjectOutputStream out)
Writes the value for gamma 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 gamma
| Constructor Detail |
|---|
public RBFKernel()
| Method Detail |
|---|
public int getType()
Kernel
getType in class Kernelpublic void setGamma(double gamma)
public double getGamma()
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 | ||||||||