class

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

Source

Instance methods

distribute(k : Enumerable)

@param k [Fixnum] number of test successful.

TODO : Enumerable of Int

Source
distribute(k : Int)

@param k [Enumerable] list of number of test successful.

Source
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.

Source