正常的#

astropy.uncertainty.normal(center, *, std=None, var=None, ivar=None, n_samples, cls=<class 'astropy.uncertainty.core.Distribution'>, **kwargs)[源代码]#

创建高斯/正态分布。

参数:
中心Quantity数量

这个分布的中心

std : Quantity or None数量或 Python :无

此分布的标准差/σ。形状必须匹配,单位必须兼容 center 或是 None (如果 varivar 已设置)。

var : Quantity or None数量或 Python :无

这个分布的方差。形状必须匹配,单位必须兼容 center 或是 None (如果 stdivar 已设置)。

ivar : Quantity or None数量或 Python :无

这个分布的逆方差。形状必须匹配,单位必须兼容 center 或是 None (如果 stdvar 已设置)。

n_samples : intPython :整型

用于此分布的蒙特卡罗样本数

cls

用于创建此分发的类。通常是 Distribution 子类。

Remaining keywords are passed into the constructor of the ``cls``
返回:
distr : Distribution or object分布或对象

采样的高斯分布。类型将与参数相同 cls