class Statistics::Binomial

Defined in:

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Statistics::DiscreteDistribution

sample(rng : Random | Nil = nil) : Int
sample(n : Int32, rng : Random | Nil = nil)
sample

Class methods inherited from class Statistics::DiscreteDistribution

sample(n : Int32, *args) sample

Constructor Detail

def self.new(p : Float64, n : UInt32) #

Class Method Detail

def self.sample(p : Float64, n : UInt32, rng : Random | Nil = nil) : Int #

Instance Method Detail

def cdf(x : Int) : Float64 #

def n : UInt32 #

def n=(n : UInt32) #

def p : Float64 #

def p=(p : Float64) #

def pdf(x : Int) : Float64 #

def sample(rng : Random | Nil = nil) : Int #