re-add implemntation for deprecated Mahalanobis

release/4.3a0
yetongumich 2020-04-02 11:04:31 -04:00
parent 9d60c505e8
commit d86bab0e7d
1 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,9 @@ namespace gtsam {
} }
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 #ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4
virtual double Mahalanobis(const Vector& v) const; virtual double Mahalanobis(const Vector& v) const {
return squaredMahalanobisDistance(v);
}
#endif #endif
inline virtual double error(const Vector& v) const { inline virtual double error(const Vector& v) const {