Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.
/ Bernoulli-C Public archive

Using the Bernoulli distribution this terminal app works by passing arguments for the total instance count, positive instances out of those total ones, positive variants, total variants.

License

Notifications You must be signed in to change notification settings

1Kill2Steal/Bernoulli-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Using the Bernoulli distribution, this terminal app works by passing arguments for the total instance count, positive instances out of those total ones, positive variants, total variants.

This is particularly useful for stuff like rolling a die and wanting to get a specific number for example:

$ bernoulli 1 1 1 6

1 - amount of attempts (n) 1 - positive outcome (k) 1 - possible variant, 6 - total variants (p, in this case 1/6) | q = 1-p

Math formula: P - probability. P = C(k)(n) * p * q

About

Using the Bernoulli distribution this terminal app works by passing arguments for the total instance count, positive instances out of those total ones, positive variants, total variants.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages