public interface ConditionalProbabilityDistribution
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(RandomVariable rv) |
ProbabilityDistribution |
getConditioningCase(AssignmentProposition... parentValues)
A conditioning case is just a possible combination of values for the
parent nodes - a miniature possible world, if you like.
|
ProbabilityDistribution |
getConditioningCase(java.lang.Object... parentValues)
A conditioning case is just a possible combination of values for the
parent nodes - a miniature possible world, if you like.
|
java.util.Set<RandomVariable> |
getFor()
A convenience method for merging the elements of getParents() and getOn()
into a consistent ordered set (i.e.
|
RandomVariable |
getOn() |
java.util.Set<RandomVariable> |
getParents() |
java.lang.Object |
getSample(double probabilityChoice,
AssignmentProposition... parentValues)
Retrieve a specific example for the Random Variable this conditional
distribution is on.
|
java.lang.Object |
getSample(double probabilityChoice,
java.lang.Object... parentValues)
Retrieve a specific example for the Random Variable this conditional
distribution is on.
|
double |
getValue(AssignmentProposition... eventValues)
Get the value for the provided set of AssignmentPropositions for the
random variables comprising the Conditional Distribution (size of each
must equal and their random variables must match).
|
double |
getValue(java.lang.Object... eventValues)
Get the value for the provided set of values for the random variables
comprising the Conditional Distribution (ordering and size of each must
equal getFor() and their domains must match).
|
RandomVariable getOn()
java.util.Set<RandomVariable> getParents()
java.util.Set<RandomVariable> getFor()
boolean contains(RandomVariable rv)
rv - the Random Variable to be checked.double getValue(java.lang.Object... eventValues)
eventValues - the values for the random variables comprising the Conditional
Distributiondouble getValue(AssignmentProposition... eventValues)
eventValues - the assignment propositions for the random variables
comprising the Conditional DistributionProbabilityDistribution getConditioningCase(java.lang.Object... parentValues)
parentValues - for the conditioning case. The ordering and size of
parentValues must equal getParents() and their domains must
match.getOn(),
getParents()ProbabilityDistribution getConditioningCase(AssignmentProposition... parentValues)
parentValues - for the conditioning case. The size of parentValues must equal
getParents() and their Random Variables must match.getOn(),
getParents()java.lang.Object getSample(double probabilityChoice,
java.lang.Object... parentValues)
probabilityChoice - a double value, from the range [0.0d, 1.0d), i.e. 0.0d
(inclusive) to 1.0d (exclusive).parentValues - for the conditioning case. The ordering and size of
parentValues must equal getParents() and their domains must
match.getOn()java.lang.Object getSample(double probabilityChoice,
AssignmentProposition... parentValues)
probabilityChoice - a double value, from the range [0.0d, 1.0d), i.e. 0.0d
(inclusive) to 1.0d (exclusive).parentValues - for the conditioning case. The size of parentValues must equal
getParents() and their Random Variables must match.getOn()