public interface MultivariateDistribution
Modifier and Type | Method and Description |
---|---|
MultivariateDistribution |
copy()
Returns a copy of the distribution.
|
Assignment |
getBest()
Returns the value with maximum probability.
|
IndependentDistribution |
getMarginal(java.lang.String variable)
Returns the marginal probability distribution P(Xi) for a random variable Xi
in X1,...Xn.
|
double |
getProb(Assignment values)
Returns the probability of a particular assignment of values.
|
java.util.Set<Assignment> |
getValues()
Returns the set of possible assignments for the random variables.
|
java.util.Set<java.lang.String> |
getVariables()
Returns the names of the random variables in the distribution
|
void |
modifyVariableId(java.lang.String oldId,
java.lang.String newId)
Modifies the variable identifier in the distribution
|
boolean |
pruneValues(double threshold)
Prunes all values assignment whose probability falls below the threshold.
|
Assignment |
sample()
Returns a sample assignment for X1,...Xn.
|
MultivariateTable |
toDiscrete()
Returns a representation of the distribution as a multivariate table.
|
java.util.Set<java.lang.String> getVariables()
java.util.Set<Assignment> getValues()
double getProb(Assignment values)
values
- the assignment of values to X1,...Xn.Assignment sample()
IndependentDistribution getMarginal(java.lang.String variable)
variable
- the random variable Xivoid modifyVariableId(java.lang.String oldId, java.lang.String newId)
oldId
- the old identifiernewId
- the new identifierMultivariateTable toDiscrete()
MultivariateDistribution copy()
boolean pruneValues(double threshold)
threshold
- the threshold to applyAssignment getBest()