A python implementation of XKCD''s Geothmetic Meandian ( https://xkcd.com/2435/ )
Project description
PyMM
A python implementation of XKCD's Geothmetic Meandian ( https://xkcd.com/2435/ )
Simply run
from GMDN import GMDN
GMDN([1, 1, 2, 3, 5])
>>> 2.0890
GMDN can also be used to get a tuple of (arithmetic mean, geometric mean, median), using geothmetic_mean found in GMDN.helpers:
from GMDN.helpers import geothmetic_meandian
geothmetic_meandian([1, 1, 2, 3, 5])
>>> (2.4, 1.97435048583482, 2)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GMDN-0.0.2.tar.gz
(1.9 kB
view hashes)
Built Distribution
GMDN-0.0.2-py3-none-any.whl
(2.9 kB
view hashes)