Created
October 13, 2017 17:17
-
-
Save frank184/85a280abca7d03d50aebc167be55e973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Probabilities | |
def prob(event_percentage, event_frequency = 1) | |
event_percentage ** event_frequency | |
end | |
def inverse_prob(event_percentage, event_frequency = 1) | |
1 - prob(event_percentage, event_frequency) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment