scipy.stats.Normal.

平均值#

Normal.mean(*, method=None)[原始碼]#

平均值(關於原點的原始一階動差)

參數:
method{None, ‘formula’, ‘transform’, ‘quadrature’, ‘cache’}

用於計算原始一階動差的方法。並非所有方法都適用於所有分佈。詳見 moment

另請參閱

moment
中位數
眾數

參考文獻

範例

使用所需的參數實例化分佈

>>> from scipy import stats
>>> X = stats.Normal(mu=1., sigma=2.)

評估變異數

>>> X.mean()
1.0
>>> X.mean() == X.moment(order=1, kind='raw') == X.mu
True