Normal(mean, deviation)
Source¶
Bases: Distribution
Decimals drawn around a mean, following a bell curve.
About 68 % of the values fall within one standard deviation of the mean.
Added in version 0.1.0
Parameters:
-
mean(float)Center of the bell curve.
-
deviation(float)Standard deviation, how far the values spread around the mean, at least 0.
Raises:
-
InvalidTypeErrorWhen a setting is not of the type its annotation names.
-
InvalidDeviationErrorWhen
deviationis lower than 0.
Examples:
import numdaplot as ndp
ndp.Array.random(ndp.Normal(mean=170, deviation=10), shape=ndp.Shape([3]), seed=0)
# Array([171.25730221, 168.67895137, 176.4042265 ], dtype=FLOAT64)