Full name
statistics.NormalDist.mode
Library
statistics
Syntax
statistics.NormalDist.mode
Description
The mode attribute of an object of type statistics.NormalDist returns the mode of the distribution.
Parameters
The statistics.NormalDist.mode attribute accepts no arguments.
Result
The statistics.NormalDist.mode 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 get its mode with the following code:
dist.mode
5.0