Stats::BinomialDistribution(N, P)
Inherits Reference < Object
Constructors
new(n : N, p : P = 0.5)
@param n [Fixnum] number of tries @param p [Float] probability of success
NOTE if no probability is defined, the default value will be 0.5
Instance methods
distribute(k : Enumerable)
@param k [Fixnum] number of test successful.
TODO : Enumerable of Int
to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.