|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.kernel.Kernel<T>
fr.lip6.kernel.LinearKernel<T>
T - type of vectors the kernel must work withpublic class LinearKernel<T extends MLVector<?>>
Simplest kernel equivalent to a dot product that works for any types of vectors (FloatVectors, ByteVectors, etc).
| Constructor Summary | |
|---|---|
LinearKernel()
|
|
| Method Summary | |
|---|---|
double |
valueOf(T t1)
kernel similarity to zero |
double |
valueOf(T t1,
T t2)
compute the kernel similarity between two element of input space |
| Methods inherited from class fr.lip6.kernel.Kernel |
|---|
NormalizedValueOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinearKernel()
| Method Detail |
|---|
public double valueOf(T t1,
T t2)
Kernel
valueOf in class Kernel<T extends MLVector<?>>t1 - first elementt2 - second element
public double valueOf(T t1)
Kernel
valueOf in class Kernel<T extends MLVector<?>>t1 - the element to compute the similarity to zero
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||