|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Probability
A probability with a "correctness."
Constructor Summary | |
Probability()
Instantiate a probability with no given initial value. |
|
Probability(double p,
boolean c)
Instantiate a probability with value 'p' and correctness 'c'. |
|
Probability(Probability P)
Copy the probability 'P'. |
Method Summary | |
boolean |
correct()
Return the correctness of the probable event. |
java.lang.String |
read(java.io.StreamTokenizer st,
boolean c)
Read in a probability UP TO AND INCLUDING AN END OF LINE from the StreamTokenizer 'st', given its correctness 'c'. |
void |
setEqualTo(Probability P)
Assign argument's value to the Probability 'P'. |
java.lang.String |
toString()
Create a printable string representing the value and correctness. |
double |
val()
Return the probability value itself. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Probability()
public Probability(double p, boolean c)
public Probability(Probability P)
Method Detail |
public double val()
public boolean correct()
public void setEqualTo(Probability P)
public java.lang.String read(java.io.StreamTokenizer st, boolean c) throws FormatException
public java.lang.String toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |