Normal | CPN Tools help |
Function for generating values from normal distributions | CPN ML |
normal(n:real, v:real) : real
Returns a drawing from a normal distribution with mean n
and variance v
.
Raises Normal
exception, if v
<0.0.
Mean: | n |
Variance: | v |
Density functions for normal distributions:
normal(505.0,3.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=3.0
grams. Each package with a weight less than 500 grams will be rejected in the control procedure.