jBNC Toolbox

jbnc.util
Class FrequencyTable

java.lang.Object
  extended byjbnc.util.FrequencyTable

public final class FrequencyTable
extends java.lang.Object

Description of the Class

Since:
June 1, 1999
Author:
Jarek Sacha

Field Summary
protected  jbnc.util.FrequencyNode[] frequencyNodes
           
protected  int nbCases
           
 
Constructor Summary
FrequencyTable(BayesianNetworks.BayesNet net)
          Constructor for the FrequencyTable object
 
Method Summary
 void addCase(int[] aCase)
          Adds a feature to the Case attribute of the FrequencyTable object
 int getN(int i, int j)
          Gets the N attribute of the FrequencyTable object
 int getN(int i, int j, int k)
          Gets the N attribute of the FrequencyTable object
 int getNbCases()
          Gets the NbCases attribute of the FrequencyTable object
 void learnNetParam(BayesianNetworks.BayesNet net, boolean usePriors, double alphaK)
          Description of the Method
 void removeAllCases()
          Description of the Method
 void removeCase(int[] aCase)
          Description of the Method
 void setCases(java.util.Vector cases)
          Sets the Cases attribute of the FrequencyTable object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nbCases

protected int nbCases

frequencyNodes

protected jbnc.util.FrequencyNode[] frequencyNodes
Constructor Detail

FrequencyTable

public FrequencyTable(BayesianNetworks.BayesNet net)
Constructor for the FrequencyTable object

Parameters:
net - Description of Parameter
Method Detail

setCases

public void setCases(java.util.Vector cases)
Sets the Cases attribute of the FrequencyTable object

Parameters:
cases - The new Cases value

getN

public int getN(int i,
                int j,
                int k)
Gets the N attribute of the FrequencyTable object

Parameters:
i - Description of Parameter
j - Description of Parameter
k - Description of Parameter
Returns:
The N value

getN

public int getN(int i,
                int j)
Gets the N attribute of the FrequencyTable object

Parameters:
i - Description of Parameter
j - Description of Parameter
Returns:
The N value

getNbCases

public int getNbCases()
Gets the NbCases attribute of the FrequencyTable object

Returns:
The NbCases value

addCase

public void addCase(int[] aCase)
Adds a feature to the Case attribute of the FrequencyTable object

Parameters:
aCase - The feature to be added to the Case attribute

removeCase

public void removeCase(int[] aCase)
                throws java.lang.Exception
Description of the Method

Parameters:
aCase - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

removeAllCases

public void removeAllCases()
Description of the Method


learnNetParam

public void learnNetParam(BayesianNetworks.BayesNet net,
                          boolean usePriors,
                          double alphaK)
                   throws java.lang.Exception
Description of the Method

Parameters:
net - Description of Parameter
usePriors - Description of Parameter
alphaK - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

SourceForge.net Logo