https://jython.pythonprogramminghelp.com/how-i-found-a-way-to-measures-of-central-tendency/