public final class NumericDecision extends Decision
CategoricalDecision
,
Serialized FormConstructor 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() |
getFeatureNumber
public NumericDecision(int featureNumber, double threshold, boolean defaultDecision)
public double getThreshold()
public boolean getDefaultDecision()
getDefaultDecision
in class Decision
Decision
cannot be evaluated
on an Example
because the feature value it decides on is missingpublic boolean isPositive(Example example)
isPositive
in class Decision
example
- example to evaluate Decision
onDecision
is positive on this examplepublic FeatureType getType()
getType
in class Decision
Decision
is over (a FeatureType
)Copyright © 2014–2018. All rights reserved.