public class BayesianChoice extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<BayesianChoice>
| Constructor and Description |
|---|
BayesianChoice(java.lang.String label,
double min,
double max)
Construct a continuous choice that covers the specified range.
|
BayesianChoice(java.lang.String label,
int index)
Construct a discrete choice for the specified index.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BayesianChoice other) |
java.lang.String |
getLabel() |
double |
getMax() |
double |
getMin() |
boolean |
isIndex() |
java.lang.String |
toFullString() |
java.lang.String |
toString() |
public BayesianChoice(java.lang.String label,
double min,
double max)
label - The label for this choice.min - The minimum value for this range.max - The maximum value for this range.public BayesianChoice(java.lang.String label,
int index)
label - The label for this choice.index - The index for this choice.public java.lang.String getLabel()
public double getMin()
public double getMax()
public boolean isIndex()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toFullString()
public int compareTo(BayesianChoice other)
compareTo in interface java.lang.Comparable<BayesianChoice>