|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SetWithDistrib
Interface for objects that represent a probability distribution over a set.
Method Summary | |
---|---|
double |
getLogProb(java.lang.Object o)
Returns the natural log of the probability of the given object under this distribution. |
double |
getProb(java.lang.Object o)
Returns the probability of the given object under this distribution. |
java.lang.Object |
sample()
Returns an object sampled according to this distribution. |
Method Detail |
---|
double getProb(java.lang.Object o)
double getLogProb(java.lang.Object o)
java.lang.Object sample()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |