Raymond> The module focuses on everyday data reduction functions and Raymond> omits more sophisticated statistical tools. ... Raymond> __all__ = ['mean', 'stddev', 'product', 'nlargest', Raymond> 'nsmallest', 'select'] Raymond It's been years since I last looked at a statistics book or thought much about statistics, but I think the standard deviation was generally defined as the square root of the variance. Perhaps you could easily add the variance to your collection of functions by renaming "stddev" to "variance", remove the "** 0.5" from the return statements, then define stddev as def stddev(data, sample=True): return variance(data, sample) ** 0.5 Skip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4