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 voidaddItem(Object item)voidaddItemTarget(Object item, double target)voidclear()voidremoveItem(Object item)voidsetTarget(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:
setTargetin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
addItem
public void addItem(Object item) throws UnsupportedOperationException
- Specified by:
addItemin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
addItemTarget
public void addItemTarget(Object item, double target) throws UnsupportedOperationException
- Specified by:
addItemTargetin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
removeItem
public void removeItem(Object item) throws UnsupportedOperationException
- Specified by:
removeItemin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
clear
public void clear() throws UnsupportedOperationException
- Specified by:
clearin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
-