Package org.biojava.stats.svm
Class AbstractSVMTarget
- java.lang.Object
-
- org.biojava.stats.svm.AbstractSVMTarget
-
- All Implemented Interfaces:
SVMTarget
public abstract class AbstractSVMTarget extends Object implements SVMTarget
An abstract implementation of an SVMModel.
You only need implement items, itemTargets and getTarget to make a read-only implementation.
- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description AbstractSVMTarget()
-
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()
void
removeItem(Object item)
void
setTarget(Object item, double target)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.biojava.stats.svm.SVMTarget
getTarget, items, itemTargets
-
-
-
-
Constructor Detail
-
AbstractSVMTarget
public AbstractSVMTarget()
-
-
Method Detail
-
setTarget
public void setTarget(Object item, double target) throws UnsupportedOperationException
- Specified by:
setTarget
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
addItem
public void addItem(Object item) throws UnsupportedOperationException
- Specified by:
addItem
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
addItemTarget
public void addItemTarget(Object item, double target) throws UnsupportedOperationException
- Specified by:
addItemTarget
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
removeItem
public void removeItem(Object item) throws UnsupportedOperationException
- Specified by:
removeItem
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
clear
public void clear() throws UnsupportedOperationException
- Specified by:
clear
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
-