From 223ecc6453e05de544a2b970026318cbfe5991bb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 19 Feb 2017 16:35:13 -0600 Subject: [PATCH] Revert "[symfont] Make sure variance is never negative (float precision issue)" This reverts commit 5c025c6a03cca2ebe3390671a81aaca28492e71c. Investigating why I'm seeing non-negligible negative variance. --- Snippets/symfont.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snippets/symfont.py b/Snippets/symfont.py index 2661c437c..c37d34d37 100755 --- a/Snippets/symfont.py +++ b/Snippets/symfont.py @@ -235,10 +235,10 @@ class GlyphStatistics(object): # Var(X) = E[X^2] - E[X]^2 @property def VarianceX(self): - return max(0, self.Moment2XX / self.Area - self.MeanX**2) + return self.Moment2XX / self.Area - self.MeanX**2 @property def VarianceY(self): - return max(0, self.Moment2YY / self.Area - self.MeanY**2) + return self.Moment2YY / self.Area - self.MeanY**2 @property def StdDevX(self):