public abstract class AbstractSVMClassifierModel extends Object implements SVMClassifierModel
Abstract implementation of SVMClassifierModel.
To implement a read-only implementation, you need only implement getThreshold and getAlpha.
| Constructor and Description |
|---|
AbstractSVMClassifierModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Object item) |
void |
addItemAlpha(Object item,
double alpha) |
double |
classify(Object item) |
void |
clear() |
void |
removeItem(Object item) |
void |
setAlpha(Object item,
double alpha) |
void |
setThreshold() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlpha, getKernel, getThreshold, itemAlphas, items, setThresholdpublic AbstractSVMClassifierModel()
public void setThreshold() throws UnsupportedOperationException
UnsupportedOperationExceptionpublic void setAlpha(Object item, double alpha) throws UnsupportedOperationException
setAlpha in interface SVMClassifierModelUnsupportedOperationExceptionpublic void addItem(Object item) throws UnsupportedOperationException
addItem in interface SVMClassifierModelUnsupportedOperationExceptionpublic void addItemAlpha(Object item, double alpha) throws UnsupportedOperationException
addItemAlpha in interface SVMClassifierModelUnsupportedOperationExceptionpublic void removeItem(Object item) throws UnsupportedOperationException
removeItem in interface SVMClassifierModelUnsupportedOperationExceptionpublic void clear() throws UnsupportedOperationException
clear in interface SVMClassifierModelUnsupportedOperationExceptionpublic double classify(Object item)
classify in interface SVMClassifierModelCopyright © 2014 BioJava. All rights reserved.