|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jbnc.util.FrequencyTable
Description of the Class
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 |
protected int nbCases
protected jbnc.util.FrequencyNode[] frequencyNodes
Constructor Detail |
public FrequencyTable(BayesianNetworks.BayesNet net)
net
- Description of ParameterMethod Detail |
public void setCases(java.util.Vector cases)
cases
- The new Cases valuepublic int getN(int i, int j, int k)
i
- Description of Parameterj
- Description of Parameterk
- Description of Parameter
public int getN(int i, int j)
i
- Description of Parameterj
- Description of Parameter
public int getNbCases()
public void addCase(int[] aCase)
aCase
- The feature to be added to the Case attributepublic void removeCase(int[] aCase) throws java.lang.Exception
aCase
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void removeAllCases()
public void learnNetParam(BayesianNetworks.BayesNet net, boolean usePriors, double alphaK) throws java.lang.Exception
net
- Description of ParameterusePriors
- Description of ParameteralphaK
- Description of Parameter
java.lang.Exception
- Description of Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |