aima.core.probability.bayes.impl.CPT Maven / Gradle / Ivy
package aima.core.probability.bayes.impl;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import aima.core.probability.CategoricalDistribution;
import aima.core.probability.Factor;
import aima.core.probability.ProbabilityModel;
import aima.core.probability.RandomVariable;
import aima.core.probability.bayes.ConditionalProbabilityTable;
import aima.core.probability.domain.FiniteDomain;
import aima.core.probability.proposition.AssignmentProposition;
import aima.core.probability.util.ProbUtil;
import aima.core.probability.util.ProbabilityTable;
/**
* Default implementation of the ConditionalProbabilityTable interface.
*
* @author Ciaran O'Reilly
*
*/
public class CPT implements ConditionalProbabilityTable {
private RandomVariable on = null;
private LinkedHashSet parents = new LinkedHashSet();
private ProbabilityTable table = null;
private List