module

Math

Inherits Math::Factorial

Instance methods

binomial_distribution(tries : Int, success : Int, probability : Number)

Computes the Binomial distributions of success among tries given a probability of success.

NOTE if no named parameters are used, then it will try to use the unamed parameters (tries, success, probability).

Source
coef_binomial(n : Int, k : Int)

Computes the binomial coefficient of (n, k)

Source

Nested types