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.
Constructor and Description |
---|
AbstractSVMTarget() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object item) |
void |
addItemTarget(Object item,
double target) |
void |
clear() |
void |
removeItem(Object item) |
void |
setTarget(Object item,
double target) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTarget, items, itemTargets
public AbstractSVMTarget()
public void setTarget(Object item, double target) throws UnsupportedOperationException
setTarget
in interface SVMTarget
UnsupportedOperationException
public void addItem(Object item) throws UnsupportedOperationException
addItem
in interface SVMTarget
UnsupportedOperationException
public void addItemTarget(Object item, double target) throws UnsupportedOperationException
addItemTarget
in interface SVMTarget
UnsupportedOperationException
public void removeItem(Object item) throws UnsupportedOperationException
removeItem
in interface SVMTarget
UnsupportedOperationException
public void clear() throws UnsupportedOperationException
clear
in interface SVMTarget
UnsupportedOperationException
Copyright © 2014 BioJava. All rights reserved.