Class: RandomVariable::Normal

Inherits:
Generic
  • Object
show all
Defined in:
lib/distros.rb

Class Method Summary collapse

Methods inherited from Generic

#initialize

Methods included from Sampleable

#outcome, #outcomes

Constructor Details

This class inherits a constructor from RandomVariable::Generic

Class Method Details

.new(mu = 0.0, sigma = 1.0) ⇒ Object

create a new Normal (aka Gaussian) Random Variable with parameters mu and sigma



84
85
86
# File 'lib/distros.rb', line 84

def self.new(mu = 0.0, sigma = 1.0)
	intern_new(mu, sigma)
end