X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=math_utils.py;h=31610ba5fd2a0726b5b1f151dc87cc362b7389d4;hb=f2600f30801c849fc1d139386e3ddc3c9eb43e30;hp=188d3234986c5f6dd5b0474512402c9adc98cbf1;hpb=61faaa42ace9ecae318dd93069db743b7d49a0c9;p=python_utils.git diff --git a/math_utils.py b/math_utils.py index 188d323..31610ba 100644 --- a/math_utils.py +++ b/math_utils.py @@ -9,7 +9,8 @@ from typing import List, Optional class NumericPopulation(object): - """A running median computer. + """A numeric population with some statistics such as median, mean, pN, + stdev, etc... >>> pop = NumericPopulation() >>> pop.add_number(1) @@ -29,6 +30,7 @@ class NumericPopulation(object): 3 >>> pop.get_percentile(60) 7 + """ def __init__(self):