|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ls.StateSet
Title: StateSet.java Description: This class's primary purpose is for summing over a set of vertexes. Copyright: Copyright (c) 2000 Company: KSU / KDD
| Constructor Summary | |
StateSet(Clique newClique)
this constructor will create a new StateSet and set the number of sums to 1 |
|
| Method Summary | |
void |
add(Node chanceBlock)
add will add a chanceblock to the stateset. |
void |
addToSum(int index,
double value)
|
Clique |
getClique()
returns the clique. |
int |
getIndex(CliqueSet cliqueSet)
getIndex will compute which summand is requested by matching up the configuration of the given cliqueSet to the set of chanceBlocks. |
int |
getNumberOfValues()
getNumberOfValues returns the number of summands this StateSet contains |
java.lang.String |
getOutput(int index)
|
java.util.Vector |
getSets()
getSets returns the set of StateObjects. |
double |
getSum(int index)
getSum returns the requested summand |
java.lang.String |
report()
|
void |
setSum(int index,
double value)
setSum sets the requested summand to a new value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StateSet(Clique newClique)
newClique - the clique prime for return purposes.| Method Detail |
public java.util.Vector getSets()
public Clique getClique()
public int getNumberOfValues()
public void add(Node chanceBlock)
chanceBlock - the new chanceBlockpublic int getIndex(CliqueSet cliqueSet)
cliqueSet - the cliqueSet to be matched uppublic double getSum(int index)
index - the requested summand numberpublic java.lang.String getOutput(int index)
public void setSum(int index,
double value)
index - the requested summandvalue - the new value
public void addToSum(int index,
double value)
public java.lang.String report()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||