|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNpackage.ProbForm
public abstract class ProbForm
Field Summary | |
---|---|
Rel[] |
RSymbs
|
Rel[] |
SSymbs
|
Constructor Summary | |
---|---|
ProbForm()
|
Method Summary | |
---|---|
abstract java.lang.String |
asString()
|
abstract java.lang.String |
asString(int depth)
|
abstract java.lang.String |
asString(int depth,
RelStruc A)
|
abstract java.lang.String |
asString(RelStruc A)
|
abstract ProbForm |
conditionEvidence(Instantiation inst)
|
abstract ProbForm |
conditionEvidence(RelStruc A,
Instantiation inst)
Simplify ProbForm by substituting values of instantiated R-atoms and evaluating subformulas no longer dependent on any uninstantiated R-atom. |
abstract boolean |
dependsOn(java.lang.String variable,
RelStruc A,
Instantiation data)
Checks whether this prob.form depends on the unknown parameter 'variable' when prob.form is evaluated over input structure A and relative to instantiation (data) data. |
abstract double |
evalSample(RelStruc A,
java.util.Hashtable atomhasht,
Instantiation inst,
long[] timers)
Evaluate this probform over RelStruc A. |
abstract double |
evaluate(RelStruc A,
Instantiation inst,
java.lang.String[] vars,
int[] tuple,
boolean useCurrentCvals)
Evaluate this ProbForm for input structure A, instantiation inst, under the substitution tuple for vars. |
abstract int |
evaluatesTo(RelStruc A)
|
abstract int |
evaluatesTo(RelStruc A,
Instantiation inst,
boolean usesampleinst,
java.util.Hashtable atomhasht)
Returns 0 if this probform evaluates to zero over structure A and with respect to instantiation inst, but irrespective of any instantiation of other probabilistic atoms. |
abstract java.lang.String[] |
freevars()
returns the free variables of the formula |
abstract java.util.Vector |
makeParentVec(RelStruc A)
returns the vector of (ground!) Atoms on which the evaluation of the probform depends |
abstract java.util.Vector |
makeParentVec(RelStruc A,
Instantiation inst)
same as previous but with respect to the given truth values in the Instantiation argument |
abstract boolean |
multlinOnly()
returns true if ProbForm only contains multilinear combination functions |
abstract java.lang.String[] |
parameters()
Returns all the parameters that this ProbForm depends on |
abstract void |
setParameters(java.lang.String[] params,
double[] values)
Sets all occurrences of parameters appearing in params to their corresponding value in values. |
abstract ProbForm |
sEval(RelStruc A)
Returns a ProbForm in which the dependence on A is already pre-evaluated (substitution lists in combination functions, and values of ProbFormSFormula) |
abstract ProbForm |
substitute(java.lang.String[] vars,
int[] args)
returns the formula obtained by substituting args for the vars in the formula. |
abstract ProbForm |
substitute(java.lang.String[] vars,
java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Rel[] SSymbs
public Rel[] RSymbs
Constructor Detail |
---|
public ProbForm()
Method Detail |
---|
public abstract java.lang.String asString(int depth)
public abstract java.lang.String asString()
public abstract java.lang.String asString(int depth, RelStruc A)
public abstract java.lang.String asString(RelStruc A)
public abstract ProbForm conditionEvidence(RelStruc A, Instantiation inst) throws RBNCompatibilityException
RBNCompatibilityException
public abstract ProbForm conditionEvidence(Instantiation inst)
public abstract boolean dependsOn(java.lang.String variable, RelStruc A, Instantiation data) throws RBNCompatibilityException
RBNCompatibilityException
public abstract double evaluate(RelStruc A, Instantiation inst, java.lang.String[] vars, int[] tuple, boolean useCurrentCvals) throws RBNCompatibilityException
RBNCompatibilityException
public abstract double evalSample(RelStruc A, java.util.Hashtable atomhasht, Instantiation inst, long[] timers) throws RBNCompatibilityException
RBNCompatibilityException
public abstract int evaluatesTo(RelStruc A, Instantiation inst, boolean usesampleinst, java.util.Hashtable atomhasht) throws RBNCompatibilityException
RBNCompatibilityException
public abstract int evaluatesTo(RelStruc A) throws RBNCompatibilityException
RBNCompatibilityException
public abstract java.lang.String[] freevars()
public abstract java.util.Vector makeParentVec(RelStruc A) throws RBNCompatibilityException
RBNCompatibilityException
public abstract java.util.Vector makeParentVec(RelStruc A, Instantiation inst) throws RBNCompatibilityException
RBNCompatibilityException
public abstract boolean multlinOnly()
public abstract java.lang.String[] parameters()
public abstract ProbForm sEval(RelStruc A) throws RBNCompatibilityException
RBNCompatibilityException
public abstract ProbForm substitute(java.lang.String[] vars, int[] args)
public abstract ProbForm substitute(java.lang.String[] vars, java.lang.String[] args)
public abstract void setParameters(java.lang.String[] params, double[] values)
params
- values
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |