diff --git a/gtsam/hybrid/HybridConditional.h b/gtsam/hybrid/HybridConditional.h index 0009d6bd8..51eeeb5bb 100644 --- a/gtsam/hybrid/HybridConditional.h +++ b/gtsam/hybrid/HybridConditional.h @@ -186,7 +186,7 @@ class GTSAM_EXPORT HybridConditional * @return AlgebraicDecisionTree A decision tree with the same keys * as the conditionals involved, and leaf values as the error. */ - virtual AlgebraicDecisionTree errorTree( + AlgebraicDecisionTree errorTree( const VectorValues& values) const override; /// Return the log-probability (or density) of the underlying conditional. diff --git a/gtsam/hybrid/HybridGaussianFactor.h b/gtsam/hybrid/HybridGaussianFactor.h index 8d57ad7da..3bf9f3dfd 100644 --- a/gtsam/hybrid/HybridGaussianFactor.h +++ b/gtsam/hybrid/HybridGaussianFactor.h @@ -148,7 +148,7 @@ class GTSAM_EXPORT HybridGaussianFactor : public HybridFactor { * @return AlgebraicDecisionTree A decision tree with the same keys * as the factors involved, and leaf values as the error. */ - virtual AlgebraicDecisionTree errorTree( + AlgebraicDecisionTree errorTree( const VectorValues &continuousValues) const override; /**