public interface BayesSampleInference
Modifier and Type | Method and Description |
---|---|
CategoricalDistribution |
ask(RandomVariable[] X,
AssignmentProposition[] observedEvidence,
BayesianNetwork bn,
int N) |
CategoricalDistribution ask(RandomVariable[] X, AssignmentProposition[] observedEvidence, BayesianNetwork bn, int N)
X
- the query variables.observedEvidence
- observed values for variables E.bn
- a Bayes net with variables {X} ∪ E ∪ Y /* Y = hidden
variablesN
- the total number of samples to be generated