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
Quantityorpython:None The standard deviation/σ of this distribution. Shape must match and unit must be compatible with
center, or beNone(ifvarorivarare set).- var
Quantityorpython:None The variance of this distribution. Shape must match and unit must be compatible with
center, or beNone(ifstdorivarare set).- ivar
Quantityorpython:None The inverse variance of this distribution. Shape must match and unit must be compatible with
center, or beNone(ifstdorvarare set).- n_samples
python:int The number of Monte Carlo samples to use with this distribution
- clsclass
The class to use to create this distribution. Typically a
Distributionsubclass.- Remaining keywords are passed into the constructor of the ``cls``
- center
- Returns:
- distr
Distributionorobject The sampled Gaussian distribution. The type will be the same as the parameter
cls.
- distr