Interface
normal(n:real, v^2:real) : real
Returns a drawing from a normal distribution with mean n
and variance v
.
Raises Normal
exception, if v<0.0
.
Characteristics
- Mean:
n
- Variance:
v
Density functions for normal distributions:
![Density functions for normal distributions](https://cpntools.org/wp-content/uploads/2018/01/normal.gif)
Density functions for normal distributions
Example
normal(505.0,4.0)
A factory produces chocolate in packages of 500
grams. The amount of chocolate in each package has a normal distribution with mean n=505.0
grams and variance v=2.0
(as v^2=4.0
) grams. Each package with a weight less than 500
grams will be rejected in the control procedure.
You must be logged in to post a comment.