unbbayes.prs.id
Class UtilityTable

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

public class UtilityTable
extends PotentialTable
implements Serializable

Utility 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
UtilityTable()
           
 
Method Summary
protected  void argMax(int control, int index, int[] coord)
           
 PotentialTable newInstance()
          Returns a new instance of UtilityTable.
 void removeVariable(INode variavel)
          Retira a variÔøΩvel da tabela.
 void removeVariable(INode variable, boolean normalize)
          Remove the variable of the table.
 
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

UtilityTable

public UtilityTable()
Method Detail

newInstance

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

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

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)
Description copied from class: PotentialTable
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

argMax

protected void argMax(int control,
                      int index,
                      int[] coord)


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