|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cve.GenRule
A generalised rule is a context together with a factor.
Field Summary | |
private Context |
ruleContext
|
private Factor |
ruleFactor
|
private Variable[] |
rulesFor
the variables that this is a rule for. |
Constructor Summary | |
GenRule()
generated the new GenRule |
|
GenRule(Context con,
Factor fact,
Variable[] ruleIsFor)
generate a new instance from context con and factor fact. |
Method Summary | |
void |
addResiduals(Context con,
RuleCollection result)
adds the residuals of this with respect to Context con to result. |
Context |
getContext()
returns the context. |
Factor |
getFactor()
returns the factor of the generalised rule. |
Variable[] |
getRulesFor()
returns the sorted lists of rules this is a rule for |
void |
observe(Variable[] observedVars,
int[] observedVals,
RuleCollection resultingRules)
adds this rule to a rule collection given the observation. |
void |
print()
print a generalised rule. |
void |
printBrief()
prints a brief summary of the rule (without the probability table). |
boolean |
redundant()
is true if the rule is redundant; if it is redundant it doesn't need to be added to the rule collection. |
boolean |
ruleFor(Variable var)
is true if this rule is a rule for variable var. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Context ruleContext
private Factor ruleFactor
private Variable[] rulesFor
Constructor Detail |
public GenRule(Context con, Factor fact, Variable[] ruleIsFor)
public GenRule()
Method Detail |
public Context getContext()
public Factor getFactor()
public boolean ruleFor(Variable var)
public Variable[] getRulesFor()
public void addResiduals(Context con, RuleCollection result)
con
- a Contextresult
- a Rule Collection of GenRule to add the new rules to.public void observe(Variable[] observedVars, int[] observedVals, RuleCollection resultingRules)
public boolean redundant()
public void print()
public void printBrief()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |