public class DiscretePrediction<T extends java.lang.Comparable<T>> extends Prediction<T>
| Constructor and Description |
|---|
DiscretePrediction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(T value,
double probability) |
T |
computeMostLikely() |
double |
getProbability(T value) |
java.lang.String |
getToolTip() |
java.util.Set<T> |
getValues() |
void |
normalize() |
java.lang.String |
toString() |
getExampleTrace, getJComponent, getPredictedValue, getTableCellRenderer, printPercentage, roundToSignificantFigures, setExampleTrace, setPredictedValuepublic void addEntry(T value, double probability)
public T computeMostLikely()
public double getProbability(T value)
public java.lang.String getToolTip()
getToolTip in class Prediction<T extends java.lang.Comparable<T>>public java.util.Set<T> getValues()
public void normalize()
public java.lang.String toString()
toString in class java.lang.Object