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 TypeMethodDescriptionvoid
void
addItemTarget
(Object item, double target) void
clear()
void
removeItem
(Object item) void
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 Details
-
AbstractSVMTarget
public AbstractSVMTarget()
-
-
Method Details
-
setTarget
- Specified by:
setTarget
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
addItem
- Specified by:
addItem
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
addItemTarget
- Specified by:
addItemTarget
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
removeItem
- Specified by:
removeItem
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-
clear
- Specified by:
clear
in interfaceSVMTarget
- Throws:
UnsupportedOperationException
-