class RV::Erlang
Erlang
generator - Weibull
restricted to integer k
- Arguments
-
rate
-> the scale parameter (rate
> 0; default: 1). -
k
-> the shape parameter (k
> 0; default: 1). -
rng
-> the (Enumerable
) source of U(0, 1)'s (default: U_GENERATOR)
-
Public Class Methods
new(rate: 1.0, k: 1, rng: U_GENERATOR)
click to toggle source
Calls superclass method
RV::Weibull::new
# File lib/random_variates.rb, line 353 def initialize(rate: 1.0, k: 1, rng: U_GENERATOR) raise 'K must be integer.' unless k.integer? super(rate: rate, k: k, rng: rng) end