scipy.stats.VonMises.
mean#
- VonMises.mean(*, method=None)[source]#
Mean, a measure of location
For real-line distributions, the mean is the first raw moment about the origin.
For circular distributions, the (circular) mean is defined ([2] 29) as the phase of the first raw trigonometric moment,
\[\mu = \arg E\left[ \exp (iX) \right].\]- Parameters:
- method{None, ‘formula’, ‘transform’, ‘quadrature’, ‘cache’}
Method used to calculate the raw first moment. Not all methods are available for all distributions. See
momentfor details.
References
[1]Mean, Wikipedia, https://en.wikipedia.org/wiki/Mean#Mean_of_a_probability_distribution
[2]Mardia, Kanti V., and Peter E. Jupp. Directional statistics. John Wiley & Sons, 1999. DOI:10.1002/9780470316979.
Examples
Instantiate a distribution with the desired parameters:
>>> from scipy import stats >>> X = stats.Normal(mu=1., sigma=2.)
Evaluate the variance:
>>> X.mean() 1.0 >>> X.mean() == X.moment(order=1, kind='raw') == X.mu True