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 :
Quantity
The center of this distribution
std :
Quantity
orNone
The standard deviation/σ of this distribution. Shape must match and unit must be compatible with
center
, or beNone
(ifvar
orivar
are set).var :
Quantity
orNone
The variance of this distribution. Shape must match and unit must be compatible with
center
, or beNone
(ifstd
orivar
are set).ivar :
Quantity
orNone
The inverse variance of this distribution. Shape must match and unit must be compatible with
center
, or beNone
(ifstd
orvar
are 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
Distribution
subclass.Remaining keywords are passed into the constructor of the ``cls``
Returns: distr :
cls
, usuallyDistribution
The sampled Gaussian distribution.