From 4be00da2912328756ea750a8dece262627fec9ad Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sat, 15 Sep 2012 11:48:59 +0000 Subject: [PATCH] evaluate operator --- gtsam/discrete/DiscreteConditional.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtsam/discrete/DiscreteConditional.h b/gtsam/discrete/DiscreteConditional.h index d54bf5518..806f0f21d 100644 --- a/gtsam/discrete/DiscreteConditional.h +++ b/gtsam/discrete/DiscreteConditional.h @@ -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));