Function Reference: hnstat

statistics: [m, v] = hnstat (mu, sigma)

Compute statistics of the half-normal distribution.

[m, v] = hnstat (mu, sigma) returns the mean and variance of the half-normal distribution with non-centrality (distance) parameter mu and scale parameter sigma.

The size of m (mean) and v (variance) is the common size of the input arguments. A scalar input functions as a constant matrix of the same size as the other inputs.

Further information about the half-normal distribution can be found at https://en.wikipedia.org/wiki/Half-normal_distribution

See also: norminv, norminv, normpdf, normrnd, normfit, normlike

Source Code: hnstat