ve
Class FactorCPT

java.lang.Object
  |
  +--ve.Factor
        |
        +--ve.FactorStored
              |
              +--ve.FactorCPT

public class FactorCPT
extends FactorStored

Factors that represent conditional probabilty tables. These explictly store the values in a table. We need to be able to read these in from various formats, including standard representations, onscreen display and a native format. We may even want to output them in a different form.


Fields inherited from class ve.FactorStored
factorValues
 
Fields inherited from class ve.Factor
BY_MULTIPLYING, BY_SUM_OUT, BY_V_ELIM, BY_V_OBS, FROM_NODE, howCreated
 
Constructor Summary
FactorCPT(Variable[] vars, double[] valuesArray)
          an extra constructor so it can take in the actual values instead of a string representation of them.
FactorCPT(Variable[] vars, java.lang.String valuesString)
           
 
Methods inherited from class ve.FactorStored
iterator
 
Methods inherited from class ve.Factor
allOnes, contains, display, getName, getVariables, isRedundant, print, print, printVariables, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactorCPT

public FactorCPT(Variable[] vars,
                 java.lang.String valuesString)

FactorCPT

public FactorCPT(Variable[] vars,
                 double[] valuesArray)
an extra constructor so it can take in the actual values instead of a string representation of them.