class Statistics::HyperGeometric

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(n1 : UInt32, n2 : UInt32, t : UInt32) #

Class Method Detail

def self.sample(n1 : UInt32, n2 : UInt32, t : UInt32, rng : Random | Nil = nil) : Int #

Instance Method Detail

def cdf(x : Int) : Float64 #

def n1 : UInt32 #

def n1=(n1 : UInt32) #

def n2 : UInt32 #

def n2=(n2 : UInt32) #

def pdf(x : Int) : Float64 #

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

def t : UInt32 #

def t=(t : UInt32) #