public FiniteBayesModel(IBayesianNetwork bn, IBayesInference bi) { if (null == bn) { throw new IllegalArgumentException("Bayesian Network describing the model must be specified."); } this.bayesNet = bn; this.representation.AddAll(bn.GetVariablesInTopologicalOrder()); setBayesInference(bi); }
public virtual void setBayesInference(IBayesInference bi) { this.bayesInference = bi; }