public boolean almostEquals (Factor p, double epsilon) {return subFactor.almostEquals (p, epsilon);}
public int argmax () {return subFactor.argmax ();}
public AbstractTableFactor asTable () { return subFactor.asTable (); }
public CPT (DiscreteFactor subFactor, Variable child) { this.subFactor = subFactor; this.child = child; if (!subFactor.containsVar (child)) { throw new IllegalArgumentException ("Invalid child var for CPT\n Child: " + child + "\n Factor: " + subFactor); } parents = new HashVarSet (subFactor.varSet ()); parents.remove (child); }
public Factor duplicate () {return subFactor.duplicate ();}
public void divideBy (Factor pot) {subFactor.divideBy (pot);}
public double entropy () {return subFactor.entropy ();}
public AssignmentIterator assignmentIterator () {return subFactor.assignmentIterator ();}
public void exponentiate (double power) {subFactor.exponentiate (power);}
public boolean containsVar (Variable var) {return subFactor.containsVar (var);}
public String dumpToString () { return subFactor.dumpToString (); }
public CPT (DiscreteFactor subFactor, Variable child) { this.subFactor = subFactor; this.child = child; if (!subFactor.containsVar (child)) { throw new IllegalArgumentException ("Invalid child var for CPT\n Child: " + child + "\n Factor: " + subFactor); } parents = new HashVarSet (subFactor.varSet ()); parents.remove (child); }
public Factor duplicate () {return subFactor.duplicate ();}
public void divideBy (Factor pot) {subFactor.divideBy (pot);}
public double entropy () {return subFactor.entropy ();}
public AssignmentIterator assignmentIterator () {return subFactor.assignmentIterator ();}
public void exponentiate (double power) {subFactor.exponentiate (power);}
public boolean containsVar (Variable var) {return subFactor.containsVar (var);}
public String dumpToString () { return subFactor.dumpToString (); }
public CPT (DiscreteFactor subFactor, Variable child) { this.subFactor = subFactor; this.child = child; if (!subFactor.containsVar (child)) { throw new IllegalArgumentException ("Invalid child var for CPT\n Child: " + child + "\n Factor: " + subFactor); } parents = new HashVarSet (subFactor.varSet ()); parents.remove (child); }