distuv 1.1.0 copy "distuv: ^1.1.0" to clipboard
distuv: ^1.1.0 copied to clipboard

univariate random distributions sampling and statistics forked from grizzly_distuv

DistUV #

Dart library to sample univariate random distributions and calculate its statistics.

  • ✅ Beta
  • ✅ Binomial
  • ✅ Cauchy
  • ✅ Chi-Square
  • ✅ Exponential
  • ✅ Gamma
  • ✅ Geometric
  • ✅ Normal
  • ❌ Pareto
  • ✅ Student's T
  • ✅ Uniform
  • ❌ Weibull
  • ❌ Beta
  • ❌ Logistic
  • ❌ Log-Normal
  • ❌ F
  • ❌ Laplace

Usage #

Statistics of a distribution #

  final beta = Beta(2.31, 0.627);
  print(beta.ppf(0.0));

Sample random number from normal distribution #

  for (int i = 0; i < 100; i++) print(randn);

Sample random number from custom normal distribution #

  final randnCust = normal(loc: 0.5);
  for (int i = 0; i < 100; i++) print(randnCust);

References #

  • Porting from Golang library prob
0
likes
120
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

univariate random distributions sampling and statistics forked from grizzly_distuv

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on distuv