Package org.biojava.stats.svm
Class AbstractSVMTarget
java.lang.Object
org.biojava.stats.svm.AbstractSVMTarget
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddItemTarget(Object item, double target) voidclear()voidremoveItem(Object item) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biojava.stats.svm.SVMTarget
getTarget, items, itemTargets
-
Constructor Details
-
AbstractSVMTarget
public AbstractSVMTarget()
-
-
Method Details
-
setTarget
- Specified by:
setTargetin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
addItem
- Specified by:
addItemin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
addItemTarget
- Specified by:
addItemTargetin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
removeItem
- Specified by:
removeItemin interfaceSVMTarget- Throws:
UnsupportedOperationException
-
clear
- Specified by:
clearin interfaceSVMTarget- Throws:
UnsupportedOperationException
-