From 3d58ce56b2beab47561dc8e8981172cc182a8387 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 15 Jul 2024 18:45:15 -0400 Subject: [PATCH] small fix --- gtsam/discrete/DiscreteConditional.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/discrete/DiscreteConditional.cpp b/gtsam/discrete/DiscreteConditional.cpp index 6df26d291..a7f472f26 100644 --- a/gtsam/discrete/DiscreteConditional.cpp +++ b/gtsam/discrete/DiscreteConditional.cpp @@ -244,7 +244,7 @@ size_t DiscreteConditional::argmax(const DiscreteValues& parentsValues) const { Key j = firstFrontalKey(); for (size_t value = 0; value < cardinality(j); value++) { values[j] = value; - double pValueS = pFS(values); // P(F=value|S=parentsValues) + double pValueS = (*this)(values); // Update MPE solution if better if (pValueS > maxP) { maxP = pValueS;