class Statistics::NegativeBinomial

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 : Float64) #

Class Method Detail

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

Instance Method Detail

def cdf(x : Int) : Float64 #

def n : Float64 #

def n=(n : Float64) #

def p : Float64 #

def p=(p : Float64) #

def pdf(x : Int) : Float64 #

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