public abstract class LinearDiscriminantRule extends AbstractRule implements IImplementationDetails, IDescriptorBased
LinearQSARModel and returns true if LinearQSARModel.predict(IAtomContainer) is >= getThreshold() and false otherwise.| Modifier and Type | Field and Description |
|---|---|
protected static Hashtable<String,String> |
dictionary |
protected LinearQSARModel |
model |
protected double |
threshold |
changes, editable, ERR_STRUCTURENOTPREPROCESSED, examples, explanation, id, logger, MSG_NO, MSG_YES, no, residueIDHidden, titlexmltag_CATEGORIES, xmltag_CATEGORY, xmltag_CATEGORYTHRESHOLD, xmltag_CLASS, xmltag_EXPLANATION, xmltag_ID, xmltag_METHOD, xmltag_METHODPARAMETER, xmltag_METHODS, xmltag_NAME, xmltag_RULE, xmltag_RULEEXAMPLE, xmltag_RULES, xmltag_TREEROOT| Constructor and Description |
|---|
LinearDiscriminantRule() |
LinearDiscriminantRule(LinearQSARModel model,
double threshold) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compare(double value,
double threshold) |
protected abstract DRuleException |
createException(ambit2.base.exceptions.QSARModelException x) |
String |
getImplementationDetails() |
LinearQSARModel |
getModel() |
ambit2.rendering.IAtomContainerHighlights |
getSelector() |
double |
getThreshold() |
protected String |
hint() |
boolean |
isCalculated(String name) |
boolean |
isImplemented() |
void |
setCalculated(org.openscience.cdk.qsar.IMolecularDescriptor descriptor,
String name,
boolean calculated) |
void |
setModel(LinearQSARModel model) |
void |
setThreshold(double threshold) |
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
This is the core of a
IDecisionRule behaviour. |
addPropertyChangeListener, clearFlags, clone, createRule, equals, fromXML, getEditor, getExampleMolecule, getExamples, getExplanation, getID, getNum, getTitle, hideResiduesID, isEditable, isResidueIDHidden, log, log, log, makeMolecule, removePropertyChangeListener, setEditable, setExampleMolecule, setExamples, setExplanation, setID, setNum, setTitle, toShallowXML, toString, toXMLaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected LinearQSARModel model
protected double threshold
public LinearDiscriminantRule(LinearQSARModel model, double threshold)
public LinearDiscriminantRule()
public double getThreshold()
public void setThreshold(double threshold)
public LinearQSARModel getModel()
public void setModel(LinearQSARModel model)
public boolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
throws DecisionMethodException
IDecisionRuleIDecisionRule behaviour. The method returns true
if the answer of the rule is YES for the analyzed molecule org.openscience.cdk.interfaces.AtomContainer and FALSE
if the answer of the rule is NO for the analyzed molecule org.openscience.cdk.interfaces.AtomContainer??verifyRule in interface IDecisionRulemol - org.openscience.cdk.interfaces.AtomContainerDecisionMethodExceptionprotected abstract DRuleException createException(ambit2.base.exceptions.QSARModelException x)
public boolean isImplemented()
isImplemented in interface IDecisionRuleisImplemented in class AbstractRuleprotected boolean compare(double value,
double threshold)
protected String hint()
public String getImplementationDetails()
getImplementationDetails in interface IImplementationDetailspublic boolean isCalculated(String name)
isCalculated in interface IDescriptorBasedpublic void setCalculated(org.openscience.cdk.qsar.IMolecularDescriptor descriptor,
String name,
boolean calculated)
setCalculated in interface IDescriptorBasedpublic ambit2.rendering.IAtomContainerHighlights getSelector()
getSelector in interface IDecisionRulegetSelector in class AbstractRuleCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.