Last updated:
0 purchases
normal distribution
A minimal Dart module for working with normal distributions.
Usage #
Cumulative distribution function (CDF) #
Returns the cumulative distribution function for the given mean and sigma, evaluated at x.
NormalDistribution(mean: -0.21, sigma: 1.7).cdf(x: -0.73);
// Result: 0.3798471227404693
copied to clipboard
Note:
Returns null if sigma is zero or negative.
Probability density function (PDF) #
Returns the probability density function for the given mean and sigma, evaluated at x.
NormalDistribution(mean: -0.21, sigma: 1.7).pdf(x: -0.73);
// Result: 0.22394634407779582
copied to clipboard
Note:
Returns null if sigma is zero or negative.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.