Added value, for wrapper
parent
44b4f21ad8
commit
e22f3893c6
|
@ -83,6 +83,9 @@ public:
|
|||
/// Find value for given assignment of values to variables
|
||||
virtual double operator()(const DiscreteValues&) const = 0;
|
||||
|
||||
/// Synonym for operator(), mostly for wrapper
|
||||
double value(const DiscreteValues& values) const { return operator()(values); }
|
||||
|
||||
/// Multiply in a DecisionTreeFactor and return the result as DecisionTreeFactor
|
||||
virtual DecisionTreeFactor operator*(const DecisionTreeFactor&) const = 0;
|
||||
|
||||
|
|
|
@ -130,8 +130,14 @@ public:
|
|||
/** return product of all factors as a single factor */
|
||||
DecisionTreeFactor product() const;
|
||||
|
||||
/** Evaluates the factor graph given values, returns the joint probability of the factor graph given specific instantiation of values*/
|
||||
double operator()(const DiscreteValues & values) const;
|
||||
/**
|
||||
* Evaluates the factor graph given values, returns the joint probability of
|
||||
* the factor graph given specific instantiation of values
|
||||
*/
|
||||
double operator()(const DiscreteValues& values) const;
|
||||
|
||||
/// Synonym for operator(), mostly for wrapper
|
||||
double value(const DiscreteValues& values) const { return operator()(values); }
|
||||
|
||||
/// print
|
||||
void print(
|
||||
|
|
Loading…
Reference in New Issue