[vlfeat] 23/44: fixed a bug in _vl_distance_mahalanobis_sq
Dima Kogan
dima at secretsauce.net
Wed Sep 16 21:05:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkogan-guest pushed a commit to branch master
in repository vlfeat.
commit 841e5882586467d569aeef3f99c1f6790534222e
Author: David <davnov134 at gmail.com>
Date: Mon Oct 13 11:33:17 2014 +0200
fixed a bug in _vl_distance_mahalanobis_sq
---
vl/mathop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vl/mathop.c b/vl/mathop.c
index 201c000..27bd7d4 100644
--- a/vl/mathop.c
+++ b/vl/mathop.c
@@ -462,7 +462,7 @@ VL_XCAT(_vl_distance_mahalanobis_sq_, SFX)
T acc = 0.0 ;
while (X < X_end) {
T d = *X++ - *MU++ ;
- acc += d * d / (*S++) ;
+ acc += d * d * (*S++) ;
}
return acc ;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/vlfeat.git
More information about the debian-science-commits
mailing list