|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CondProbDistrib
An interface which all user-defined conditional probability
distributions (CPDs), as well as the EqualsCPD
class,
are expected to implement.
Method Summary | |
---|---|
double |
getLogProb(java.util.List args,
java.lang.Object childValue)
Returns the natural log of the value returned by getProb. |
double |
getProb(java.util.List args,
java.lang.Object childValue)
For a discrete distribution, returns the conditional probability of childValue given the argument values args . |
java.lang.Object |
sampleVal(java.util.List args,
Type childType)
Samples a value according to this CPD given the args
. |
Method Detail |
---|
double getProb(java.util.List args, java.lang.Object childValue)
childValue
given the argument values args
.
For a continuous distribution, returns the conditional probability
density at childValue
.
double getLogProb(java.util.List args, java.lang.Object childValue)
java.lang.Object sampleVal(java.util.List args, Type childType)
args
. The object returned should be of the specified type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |