Class: Distrb::Normal

Inherits:
Distribution show all
Defined in:
lib/distrb/normal.rb

Overview

Defined Under Namespace

Classes: BoxMullerTransform

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Distribution

#sample

Constructor Details

#initializeNormal

Returns a new instance of Normal.



12
13
14
# File 'lib/distrb/normal.rb', line 12

def initialize
  @sampler = BoxMullerTransform.new
end

Instance Attribute Details

#samplerObject (readonly)

Returns the value of attribute sampler.



10
11
12
# File 'lib/distrb/normal.rb', line 10

def sampler
  @sampler
end