public class SDDProbabilityFunction extends java.lang.Object implements SDDFunction<java.lang.Double>
| Constructor and Description |
|---|
SDDProbabilityFunction(java.util.Map<Variable,java.lang.Double> apriori)
Creates an SDD probability function
with the specified a priori probability distribution.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
conjunctionValue(java.lang.Double primeX,
java.lang.Double subX)
Returns the value associated with a conjunction
given the value associated with its prime and its sub.
|
java.lang.Double |
disjunctionValue(java.util.Collection<java.lang.Double> xs)
Returns the value associated with a disjunction
given the value of all its elements in its decomposition.
|
java.lang.Double |
falseValue(java.util.Collection<Variable> vars)
Returns the value associated with false
for the specified collection of variables.
|
java.lang.Double |
negativeLiteralValue(Variable var)
Returns the value associated with the negative literal
of the specified variable.
|
java.lang.Double |
positiveLiteralValue(Variable var)
Returns the value associated with the positive literal
of the specified variable.
|
java.lang.Double |
trueValue(java.util.Collection<Variable> vars)
Returns the value associated with true
for the specified collection of variables.
|
public SDDProbabilityFunction(java.util.Map<Variable,java.lang.Double> apriori)
apriori - the a priori probability of each variable
to evaluate to true.public java.lang.Double trueValue(java.util.Collection<Variable> vars)
SDDFunctiontrueValue in interface SDDFunction<java.lang.Double>vars - the collection of variables
upon which the true logical statement is tested.public java.lang.Double falseValue(java.util.Collection<Variable> vars)
SDDFunctionfalseValue in interface SDDFunction<java.lang.Double>vars - the collection of variables
upon which the false logical statement is tested.public java.lang.Double positiveLiteralValue(Variable var)
SDDFunctionpositiveLiteralValue in interface SDDFunction<java.lang.Double>var - the variable that defines the logical statement.public java.lang.Double negativeLiteralValue(Variable var)
SDDFunctionnegativeLiteralValue in interface SDDFunction<java.lang.Double>var - the variable that defines the logical statement.public java.lang.Double conjunctionValue(java.lang.Double primeX,
java.lang.Double subX)
SDDFunctionconjunctionValue in interface SDDFunction<java.lang.Double>primeX - the value associated with the prime.subX - the value associated with the sub.public java.lang.Double disjunctionValue(java.util.Collection<java.lang.Double> xs)
SDDFunctiondisjunctionValue in interface SDDFunction<java.lang.Double>xs - the list of values associated
with the elements of the decomposition.