pyCGM_Single.pycgmStatic.average

pyCGM_Single.pycgmStatic.average(list)

Average Calculation function

Calculates the average of the values in a given list or array.

Parameters
listlist

List or array of values.

Returns
float

The mean of the list.

Examples

>>> import numpy as np
>>> from .pycgmStatic import average
>>> list = [1,2,3,4,5]
>>> average(list)
3.0
>>> list = np.array([93.82, 248.96, 782.62])
>>> np.around(average(list), 2)
375.13