|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--k2.NIJValues
| Constructor Summary | |
NIJValues(int[][] originalData,
Node node,
java.util.Vector parents,
BBN network)
constructor sets up the node vector and other internal variables. |
|
| Method Summary | |
int[][] |
getData()
getData returns the data array |
int |
getIndex(int[] values)
getIndex returns the CPT index value given the node state configuration. |
Node[] |
getNodes()
getNodes returns all of the parents with the node appended at the end. |
int |
getNumberOfProbabilities()
getNumberOfProbabilities returns the number of probabilities. |
int |
getValue(int[] values)
getValue returns the number of times the given node state configuration appears in the data. |
int |
getValue(java.lang.Integer key)
getValue returns the already-computed state configuration index instance count. |
int |
getValueForAllNodeStates(int[] parentConfiguration)
Iterates through all node states and counts how many times it appears for the given parent configuration. |
java.util.Hashtable |
getValuesHash()
getValuesHash gets the hash table for all of the node state instances. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NIJValues(int[][] originalData,
Node node,
java.util.Vector parents,
BBN network)
originalData - - the original unmodified data set.node - - the node that we're computing for.parents - - the potential parents for this nodenetwork - - used to build our own data array. (we simply
copy n array indices, where n is the number of parents + 1.)| Method Detail |
public Node[] getNodes()
public int getNumberOfProbabilities()
public int[][] getData()
public java.util.Hashtable getValuesHash()
public int getIndex(int[] values)
values - - the array of state valuespublic int getValue(int[] values)
values - - the node state configuration.public int getValue(java.lang.Integer key)
key- - the CPT indexpublic int getValueForAllNodeStates(int[] parentConfiguration)
parentConfiguration - - the state indices for the parents.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||