grizzly_distuv 1.0.0

Dart native js
Flutter Android iOS web

Univariate random distributions library for Dart

DistUV #

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

  • [X] Beta
  • [X] Binomial
  • [X] Cauchy
  • [X] Chi-Square
  • [X] Exponential
  • [X] Gamma
  • [X] Geometric
  • [X] Normal
  • [ ] Pareto
  • [X] Student's T
  • [X] 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
60
pub points
51%
popularity

Univariate random distributions library for Dart

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tejainece@gmail.com

License

BSD (LICENSE)

More

Packages that depend on grizzly_distuv