|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.kernel.Kernel<T>
T - Type of data from input spacepublic abstract class Kernel<T>
Base class for kernels
| Field Summary | |
|---|---|
java.lang.String |
name
|
| Constructor Summary | |
|---|---|
Kernel()
|
|
| Method Summary | |
|---|---|
double[][] |
getKernelMatrix(java.util.ArrayList<TrainingSample<T>> e)
return the Gram Matrix of this kernel computed on given samples |
double[][] |
getNormalizedKernelMatrix(java.util.ArrayList<TrainingSample<T>> e)
return the Gram Matrix of this kernel computed on given samples |
double |
normalizedValueOf(T t1,
T t2)
kernel similarity normalized such that k(t1, t1) = 1 |
void |
setName(java.lang.String n)
|
java.lang.String |
toString()
|
abstract double |
valueOf(T t1)
kernel similarity to zero |
abstract double |
valueOf(T t1,
T t2)
compute the kernel similarity between two element of input space |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String name
| Constructor Detail |
|---|
public Kernel()
| Method Detail |
|---|
public abstract double valueOf(T t1,
T t2)
t1 - first elementt2 - second element
public abstract double valueOf(T t1)
t1 - the element to compute the similarity to zero
public double normalizedValueOf(T t1,
T t2)
t1 - first elementt2 - second element
public double[][] getKernelMatrix(java.util.ArrayList<TrainingSample<T>> e)
e -
public double[][] getNormalizedKernelMatrix(java.util.ArrayList<TrainingSample<T>> e)
e -
public void setName(java.lang.String n)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||