Full name
statistics.NormalDist
Library
statistics
Syntax
statistics.NormalDist(mu=0.0, sigma=1.0)
Description
The statistics.NormalDist class returns an object that represents a normal distribution.
Parameters
- mu: Arithmetic mean of the distribution.
- sigma: Standard deviation of the distribution.
Result
The statistics.NormalDist class returns an object of type NormalDist.
Examples
We can create an object representing a normal distribution with mean 5 and standard deviation 2 with the following code:
dist = statistics.NormalDist(mu = 5, sigma = 2)
dist
NormalDist(mu = 5.0, sigma = 2.0)