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
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.
1
likes
150
points
90
downloads

Publisher

verified publisherkaseken.dev

Weekly Downloads

2024.08.07 - 2025.02.19

A minimal Dart module for working with normal distributions.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on normal_distribution