statistics.NormalDist.mode

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
Submitted by admin on Mon, 04/12/2021 - 11:22