public final class NumericDecision extends Decision
CategoricalDecision,
Serialized Form| Constructor and Description |
|---|
NumericDecision(int featureNumber,
double threshold,
boolean defaultDecision) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
getDefaultDecision() |
double |
getThreshold() |
FeatureType |
getType() |
int |
hashCode() |
boolean |
isPositive(Example example) |
String |
toString() |
getFeatureNumberpublic NumericDecision(int featureNumber,
double threshold,
boolean defaultDecision)
public double getThreshold()
public boolean getDefaultDecision()
getDefaultDecision in class DecisionDecision cannot be evaluated
on an Example because the feature value it decides on is missingpublic boolean isPositive(Example example)
isPositive in class Decisionexample - example to evaluate Decision onDecision is positive on this examplepublic FeatureType getType()
getType in class DecisionDecision is over (a FeatureType)Copyright © 2014–2018. All rights reserved.