Package org.biojava.stats.svm
Class SimpleSVMTarget
- java.lang.Object
-
- org.biojava.stats.svm.SimpleSVMTarget
-
- All Implemented Interfaces:
SVMTarget
public class SimpleSVMTarget extends Object implements SVMTarget
No-frills implementation of SVMTarget.- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description SimpleSVMTarget()
SimpleSVMTarget(Collection items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(Object item)
void
addItemTarget(Object item, double target)
void
clear()
double
getTarget(Object item)
Set
items()
Set
itemTargets()
void
removeItem(Object item)
void
setTarget(Object item, double target)
-
-
-
Constructor Detail
-
SimpleSVMTarget
public SimpleSVMTarget()
-
SimpleSVMTarget
public SimpleSVMTarget(Collection items)
-
-
Method Detail
-
itemTargets
public Set itemTargets()
- Specified by:
itemTargets
in interfaceSVMTarget
-
addItemTarget
public void addItemTarget(Object item, double target)
- Specified by:
addItemTarget
in interfaceSVMTarget
-
removeItem
public void removeItem(Object item)
- Specified by:
removeItem
in interfaceSVMTarget
-
-