From 9633ad1fd8631a3abda75a25e5217e516119e458 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Sat, 7 Dec 2024 19:24:29 -0500 Subject: [PATCH] make DiscreteConditional::likelihood match the declaration --- gtsam/discrete/DiscreteConditional.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/discrete/DiscreteConditional.cpp b/gtsam/discrete/DiscreteConditional.cpp index 2f900afbe..048f35e5b 100644 --- a/gtsam/discrete/DiscreteConditional.cpp +++ b/gtsam/discrete/DiscreteConditional.cpp @@ -201,7 +201,7 @@ DiscreteConditional::shared_ptr DiscreteConditional::choose( } /* ************************************************************************** */ -DecisionTreeFactor::shared_ptr DiscreteConditional::likelihood( +DiscreteFactor::shared_ptr DiscreteConditional::likelihood( const DiscreteValues& frontalValues) const { // Get the big decision tree with all the levels, and then go down the // branches based on the value of the frontal variables. @@ -226,7 +226,7 @@ DecisionTreeFactor::shared_ptr DiscreteConditional::likelihood( } /* ****************************************************************************/ -DecisionTreeFactor::shared_ptr DiscreteConditional::likelihood( +DiscreteFactor::shared_ptr DiscreteConditional::likelihood( size_t frontal) const { if (nrFrontals() != 1) throw std::invalid_argument(