Normal.density(u, mu=0, sigma=1);
This function computes the probability density function according to a normal distribution with mean value mu and standard deviation sigma (variance = sigma2). Plot of the function:
For more details, see Wikipedia.
density(0.5) // = 0.3520653267642995 density(3,1,0.5) // = 0.00026766045152977074
Normal.cumulative, Normal.quantile.
function density extends Modelica.Math.Distributions.Interfaces.partialDensity; input Real mu = 0 "Expectation (mean) value of the normal distribution" annotation( Dialog); input Real sigma = 1 "Standard deviation of the normal distribution" annotation( Dialog); end density;
Date | Description | ||
---|---|---|---|
June 22, 2015 |
|