Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grizzly-dart/grizzly_distuv
Statistics library for Dart
https://github.com/grizzly-dart/grizzly_distuv
bernoulli-distribution beta-distribution cdf exponential-distributions normal-distribution pdf poisson-distribution probability-density probability-distribution random-number-distributions random-number-generator statistics stats uniform-distribution
Last synced: 8 days ago
JSON representation
Statistics library for Dart
- Host: GitHub
- URL: https://github.com/grizzly-dart/grizzly_distuv
- Owner: Grizzly-dart
- License: bsd-3-clause
- Created: 2017-09-17T21:00:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-22T08:22:50.000Z (almost 3 years ago)
- Last Synced: 2023-09-14T22:42:35.101Z (over 1 year ago)
- Topics: bernoulli-distribution, beta-distribution, cdf, exponential-distributions, normal-distribution, pdf, poisson-distribution, probability-density, probability-distribution, random-number-distributions, random-number-generator, statistics, stats, uniform-distribution
- Language: Dart
- Size: 43.9 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```dart
final beta = Beta(2.31, 0.627);
print(beta.ppf(0.0));
```## Sample random number from normal distribution
```dart
for (int i = 0; i < 100; i++) print(randn);
```## Sample random number from custom normal distribution
```dart
final randnCust = normal(loc: 0.5);
for (int i = 0; i < 100; i++) print(randnCust);
```# References
- Porting from Golang library [prob](https://github.com/atgjack/prob)