Class: RandomVariable::Bernoulli
Class Method Summary collapse
-
.new(p) ⇒ Object
create a new Bernoulli Random Variable with parameter
p
.
Methods inherited from Generic
Methods included from Sampleable
Constructor Details
This class inherits a constructor from RandomVariable::Generic
Class Method Details
.new(p) ⇒ Object
create a new Bernoulli Random Variable with parameter p
20 21 22 |
# File 'lib/distros.rb', line 20 def self.new(p) intern_new(p) end |