org.encog.ml.bayesian.parse
Class ParsedChoice
- java.lang.Object
-
- org.encog.ml.bayesian.parse.ParsedChoice
-
public class ParsedChoice extends java.lang.ObjectA parsed choice.
-
-
Constructor Summary
Constructors Constructor and Description ParsedChoice(java.lang.String label, double min, double max)Construct a continuous choice, with a min and max.ParsedChoice(java.lang.String label, int index)Construct a discrete value for this choice.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetLabel()doublegetMax()doublegetMin()booleanisIndex()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ParsedChoice
public ParsedChoice(java.lang.String label, double min, double max)Construct a continuous choice, with a min and max.- Parameters:
label- The label, for this chocie.min- The min value, for this choice.max- The max value, for this choice.
-
ParsedChoice
public ParsedChoice(java.lang.String label, int index)Construct a discrete value for this choice.- Parameters:
label- The choice label.index- The index.
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
- Returns:
- The label.
-
getMin
public double getMin()
- Returns:
- The min value.
-
getMax
public double getMax()
- Returns:
- The max value.
-
isIndex
public boolean isIndex()
- Returns:
- True, if this choice is indexed, or discrete.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG