Full name
statistics.NormalDist.median
Library
statistics
Syntax
statistics.NormalDist.median
Description
The median attribute of an object of type statistics.NormalDist returns the median of the distribution.
Parameters
The statistics.NormalDist.median attribute accepts no arguments.
Result
The statistics.NormalDist.median attribute returns a value of type float.
Examples
If we start from the following normal distribution:
dist = statistics.NormalDist(mu = 5, sigma = 2)
...we can obtain its median with the following code:
dist.median
5.0