|
|||||||||
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.SigmoidKernel
public class SigmoidKernel
Returns the value of a Sigmoid kernel of both examples.
Field Summary | |
---|---|
private double |
a
The parameter a of the sigmoid kernel. |
private double |
b
The parameter b of the sigmoid 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 | |
---|---|
SigmoidKernel()
|
Method Summary | |
---|---|
double |
calculateDistance(double[] x1,
double[] x2)
Subclasses must implement this method. |
int |
getType()
Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, or KERNEL_SIGMOID. |
void |
readKernelParameters(java.io.ObjectInputStream in)
Reads the kernel parameters from the given stream. |
void |
setSigmoidParameters(double a,
double b)
Sets the parameters of this Sigmoid kernel to the given values a and b. |
void |
writeKernelParameters(java.io.ObjectOutputStream out)
Writes the kernel parameters 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 a
private double b
Constructor Detail |
---|
public SigmoidKernel()
Method Detail |
---|
public int getType()
Kernel
getType
in class Kernel
public void setSigmoidParameters(double a, double b)
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 Kernel
java.io.IOException
public void writeKernelParameters(java.io.ObjectOutputStream out) throws java.io.IOException
writeKernelParameters
in class Kernel
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |