From 351c6f8bccca726e3515721cde22626750fc4011 Mon Sep 17 00:00:00 2001 From: yetongumich Date: Wed, 1 Apr 2020 16:45:37 -0400 Subject: [PATCH] add implementation for deprecated Mahalanobis --- gtsam/linear/NoiseModel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtsam/linear/NoiseModel.h b/gtsam/linear/NoiseModel.h index b08207566..c4128909b 100644 --- a/gtsam/linear/NoiseModel.h +++ b/gtsam/linear/NoiseModel.h @@ -219,7 +219,9 @@ namespace gtsam { } #ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 - virtual double Mahalanobis(const Vector& v) const; + virtual double Mahalanobis(const Vector& v) const { + return SquaredMahalanobisDistance(v); + } #endif inline virtual double distance(const Vector& v) const {