normal¶
-
astropy.uncertainty.normal(center, *, std=None, var=None, ivar=None, n_samples, cls=<class 'astropy.uncertainty.core.Distribution'>, **kwargs)[source]¶ Create a Gaussian/normal distribution.
Parameters: center :
QuantityThe center of this distribution
The standard deviation/σ of this distribution. Shape must match and unit must be compatible with
center, or beNone(ifvarorivarare set).The variance of this distribution. Shape must match and unit must be compatible with
center, or beNone(ifstdorivarare set).The inverse variance of this distribution. Shape must match and unit must be compatible with
center, or beNone(ifstdorvarare set).n_samples : int
The number of Monte Carlo samples to use with this distribution
cls : class
The class to use to create this distribution. Typically a
Distributionsubclass.Remaining keywords are passed into the constructor of the ``cls``
Returns: distr :
cls, usuallyDistributionThe sampled Gaussian distribution.