|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Kernel
The kernel interface to be used by any class that wants to implement a kernel.
Method Summary | |
---|---|
boolean |
areValid(double[] params)
test if the given combination of parameters is valid for this kernel. |
double |
evaluate(double[] a,
double[] b)
returns the value of the kernel given vectors a and b. |
double |
evaluate(DoubleVector a,
DoubleVector b)
returns the value of the kernel given vectors a and b. |
double |
getDefaultParameter(int index)
return the default parameter at the given index. |
int |
getNumberParameters()
Kernel parameters are constants which modify the way the kernel works. |
double |
getParameter(int index)
returns the parameter at given index. |
String |
getParameterName(int index)
return the name of the parameter at the given index. |
KernelFactory.KernelType |
getType()
|
void |
setParameter(int index,
double value)
sets the given parameter. |
Method Detail |
---|
KernelFactory.KernelType getType()
KernelFactory.KernelType
of the Kerneldouble evaluate(DoubleVector a, DoubleVector b)
a
- the first vectorb
- the second vector
DoubleVector
double evaluate(double[] a, double[] b)
a
- the first vectorb
- the second vector
int getNumberParameters()
String getParameterName(int index)
index
- the parameter index.
boolean areValid(double[] params)
params
- the parameters. must have length = getNumberParameters()
void setParameter(int index, double value)
index
- the index of the parameter to setvalue
- the value to put into the parameterdouble getParameter(int index)
index
- the index of the parameter to get
double getDefaultParameter(int index)
index
- the parameter index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |