|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProbabilityFunction
This class represents a probability function (e.g. probability table if a variable is a tabled variable) associated with a random variable.
Method Summary | |
---|---|
void |
addVariable(INode variable)
Inserts a variable into function. |
INode |
getVariableAt(int index)
Obtains a variable (node) associated with this function |
void |
notifyModification()
This method has to be called when there is a change in any of the variables in this function. |
void |
removeVariable(INode variable)
Remove the variable from this function. |
void |
removeVariable(INode variable,
boolean update)
Remove the variable from this function. |
void |
setVariableAt(int index,
INode node)
Inserts a variable into position |
int |
variableCount()
Obtains the number of associated variables. |
Method Detail |
---|
void addVariable(INode variable)
variable
- : variable to be injected.int variableCount()
INode getVariableAt(int index)
index
-
void removeVariable(INode variable)
variable
- variable to be removed.void removeVariable(INode variable, boolean update)
variable
- variable to be removed.update
- this parameter should be set to true/false if an active update to some values of
probability function is required (or not).void setVariableAt(int index, INode node)
index
- : position to insert variablenode
- : variable to be insertedvoid notifyModification()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |