unbbayes.prs.bn
Class ProbabilisticTable

java.lang.Object
  extended by unbbayes.prs.bn.PotentialTable
      extended by unbbayes.prs.bn.ProbabilisticTable
All Implemented Interfaces:
Serializable, Cloneable, IProbabilityFunction

public class ProbabilisticTable
extends PotentialTable
implements Serializable

Probabilistic Potential Table

Author:
Michael
See Also:
Serialized Form

Field Summary
 
Fields inherited from class unbbayes.prs.bn.PotentialTable
dataCopy, dataMarginal, dataPT, DIVISION_OPERATOR, factorsMarginal, factorsPT, MINUS_OPERATOR, PLUS_OPERATOR, PRODUCT_OPERATOR, variableList
 
Constructor Summary
ProbabilisticTable()
           
 
Method Summary
 PotentialTable newInstance()
          Returns a new instance of a ProbabilisticTable.
 void removeVariable(INode variavel)
          Retira a variÔøΩvel da tabela.
 void removeVariable(INode variable, boolean normalize)
          Remove the variable of the table.
 void verifyConsistency()
          Verifica a consistÔøΩncia das probabilidades da tabela.
 
Methods inherited from class unbbayes.prs.bn.PotentialTable
addValueAt, addVariable, clone, clone, cloneVariables, computeFactors, computeFactorsMarginal, copyData, directOpTab, finding, getLinearCoord, getLinearCoordMarginal, getMultidimensionalCoord, getMultidimensionalCoordMarginal, getValue, getValue, getVariableAt, getVariableIndex, getVariablesSize, indexOfVariable, indexOfVariable, moveVariableWithoutMoveData, notifyModification, opTab, removeValueAt, restoreData, setTableSize, setValue, setValue, setVariableAt, sum, tableSize, variableCount
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbabilisticTable

public ProbabilisticTable()
Method Detail

removeVariable

public void removeVariable(INode variavel)
Retira a variÔøΩvel da tabela. Utilizado tambÔøΩm para marginalizaÔøΩÔøΩo generalizada.

Specified by:
removeVariable in interface IProbabilityFunction
Specified by:
removeVariable in class PotentialTable
Parameters:
variavel - Variavel a ser retirada da tabela.

removeVariable

public void removeVariable(INode variable,
                           boolean normalize)
Remove the variable of the table. Note: Substitute the previous method removeVariable(Node variable)

Specified by:
removeVariable in interface IProbabilityFunction
Specified by:
removeVariable in class PotentialTable
Parameters:
variable - Variable to be removed
normalize - True if is to normalize the cpt after the node remotion

verifyConsistency

public void verifyConsistency()
                       throws Exception
Verifica a consistÔøΩncia das probabilidades da tabela.

Throws:
Exception - se a tabela nÔøΩo soma 100 para todos os estados fixada qualquer configuraÔøΩÔøΩo de estados dos pais.

newInstance

public PotentialTable newInstance()
Returns a new instance of a ProbabilisticTable. Implements the abstract method from PotentialTable.

Specified by:
newInstance in class PotentialTable
Returns:
a new instance of a ProbabilisticTable.


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.