Package org.biojava.stats.svm
Class ListSumKernel
- java.lang.Object
-
- org.biojava.stats.svm.NestedKernel
-
- org.biojava.stats.svm.ListSumKernel
-
- All Implemented Interfaces:
Serializable
,SVMKernel
public class ListSumKernel extends NestedKernel
This kernel computes the sum of the dot products between items of two lists at corresponding indexes. We define k(x, null) to be zero for when list elements are null.- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListSumKernel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
evaluate(Object a, Object b)
Return the dot product of two vectors in an arbitrary feature space.String
toString()
-
Methods inherited from class org.biojava.stats.svm.NestedKernel
getNestedKernel, setNestedKernel
-
-
-
-
Constructor Detail
-
ListSumKernel
public ListSumKernel()
-
-