mrpy.base.stats.TGGDln.raw_moments

TGGDln.raw_moments(n)

Calculate the nth raw moment, E[X^n].

Parameters:

n : array_like

The order(s) of the moment desired.

Returns:

mu_n : array_like

The raw moment(s) corresponding to the order(s) n.

Notes

The 1st raw moment is equivalent to the mean.

Examples

>>> from mrpy.base.stats import TGGD
>>> t = TGGD()
>>> mean = t.raw_moments(1)
>>> ten_moments = t.raw_moments(np.arange(10))