normal_distribution 0.0.1 copy "normal_distribution: ^0.0.1" to clipboard
normal_distribution: ^0.0.1 copied to clipboard

A minimal Dart module for working with normal distributions.

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

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

Note:

  • Returns null if sigma is zero or negative.
1
likes
150
pub points
62%
popularity

Publisher

verified publisherkaseken.dev

A minimal Dart module for working with normal distributions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on normal_distribution