public interface ProbabilityModel
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ROUNDING_THRESHOLD
The default threshold for rounding errors.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<RandomVariable> |
getRepresentation() |
boolean |
isValid() |
double |
posterior(Proposition phi,
Proposition... evidence)
Unlike unconditional or prior probabilities, most of the time we have
some information, usually called evidence, that has already been
revealed.
|
double |
prior(Proposition... phi)
For any proposition φ, P(φ) = ∑ω ∈
φ P(ω).
|
static final double DEFAULT_ROUNDING_THRESHOLD
boolean isValid()
double prior(Proposition... phi)
phi
- the propositional terms for which a probability value is to be
returned.double posterior(Proposition phi, Proposition... evidence)
phi
- the proposition for which a probability value is to be
returned.evidence
- information we already have.java.util.Set<RandomVariable> getRepresentation()