smpl.stat.mean

smpl.stat.mean(n)[source]

Return mean of n with combined error of variance and unvertainties of n.

Parameters

narray_like

Data to be averaged.

Returns

uncertainties.unumpy.uarray

Mean of n.

Examples

>>> n = np.array([1, 2, 3, 4, 5])
>>> mean(n)
3.0+/-1.5811388300841898