[Git][NTPsec/ntpsec][mr_1415] ntpclients/ntpviz.py, pylib/statfiles.py: Fix typos.
Gary E. Miller (@garyedmundsmiller)
gitlab at mg.gitlab.com
Thu Jan 2 03:11:16 UTC 2025
Gary E. Miller pushed to branch mr_1415 at NTPsec / ntpsec
Commits:
b27c4778 by Gary E. Miller at 2025-01-01T19:10:45-08:00
ntpclients/ntpviz.py, pylib/statfiles.py: Fix typos.
Comments from MR 1415
- - - - -
2 changed files:
- ntpclients/ntpviz.py
- pylib/statfiles.py
Changes:
=====================================
ntpclients/ntpviz.py
=====================================
@@ -1907,7 +1907,7 @@ points.</dd>
<dt>Skewness, Skew:</dt>
<dd>The skewness of a random variable X is the third standardized moment
-and is a dimension-less ratio. ntpviz uses the FIsher-Pearson moment
+and is a dimension-less ratio. ntpviz uses the Fisher-Pearson moment
of skewness. See <a href="#NIST1">[NIST1]</a>.
There are other different ways to calculate Skewness.
<br>
=====================================
pylib/statfiles.py
=====================================
@@ -69,20 +69,20 @@ class NTPStats:
percents: A list of integer percentile to calculate.
values: A sorted list of values.
-We try to duplicate Excel, Libreoffice, R, etc.
-Don't chanage without testing.
+We try to duplicate Excel, LibreOffice, R, etc.
+Don't change without testing.
NIST/SEMATECH e-Handbook of Statistical Methods, 2012
7.2.6.2. Percentiles
https://www.itl.nist.gov/div898/handbook/prc/section2/prc262.htm
"""
- ret = {}
length = len(values)
if 0 == length:
# No data, return {}
- return ret
+ return {}
+ ret = {}
if 1 == length:
# just one data value, set all to that one value
for perc in percents:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/b27c4778b9eeb62a514d492acbc49e29ea264240
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/b27c4778b9eeb62a514d492acbc49e29ea264240
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20250102/ed89b0eb/attachment-0001.htm>
More information about the vc
mailing list