smpl.stat

Simplified statistics.

mean(n)

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

no_dist(N)

Return N with no uncertainties.

noisy(x[, mean, std])

Add gaussian noise to x.

normalize(ydata)

Return normalized ydata.

novar_mean(n)

Return mean of n with only the uncertainties of n and no variance.

poisson_dist(N)

Return N with added poissonian uncertainties.

unv(arr)

Return the nominal values of the numbers in NumPy array arr.

unv_lambda(f)

Returns a function which applies unv() on the result of f.

usd(arr)

Return the standard deviations of the numbers in NumPy array arr.

Functions

smpl.stat.mean(n)[source]

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

smpl.stat.no_dist(N)[source]

Return N with no uncertainties.

smpl.stat.noisy(x, mean=0, std=1)[source]

Add gaussian noise to x.

smpl.stat.normalize(ydata)[source]

Return normalized ydata.

smpl.stat.novar_mean(n)[source]

Return mean of n with only the uncertainties of n and no variance.

smpl.stat.poisson_dist(N)[source]

Return N with added poissonian uncertainties.

smpl.stat.unv(arr)

Return the nominal values of the numbers in NumPy array arr.

Elements that are not numbers with uncertainties (derived from a class from this module) are passed through untouched (because a numpy.array can contain numbers with uncertainties and pure floats simultaneously).

If arr is of type unumpy.matrix, the returned array is a numpy.matrix, because the resulting matrix does not contain numbers with uncertainties.

smpl.stat.unv_lambda(f)[source]

Returns a function which applies unv() on the result of f.

smpl.stat.usd(arr)

Return the standard deviations of the numbers in NumPy array arr.

Elements that are not numbers with uncertainties (derived from a class from this module) are passed through untouched (because a numpy.array can contain numbers with uncertainties and pure floats simultaneously).

If arr is of type unumpy.matrix, the returned array is a numpy.matrix, because the resulting matrix does not contain numbers with uncertainties.