evaluate operator

release/4.3a0
Frank Dellaert 2012-09-15 11:48:59 +00:00
parent 8b6c1a0b9d
commit 4be00da291
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ namespace gtsam {
/// @name Standard Interface
/// @{
/// Evaluate, just look up in AlgebraicDecisonTree
virtual double operator()(const Values& values) const {
return Potentials::operator()(values);
}
/** Convert to a factor */
DecisionTreeFactor::shared_ptr toFactor() const {
return DecisionTreeFactor::shared_ptr(new DecisionTreeFactor(*this));