Class: Distrb::Normal
- Inherits:
-
Distribution
- Object
- Distribution
- Distrb::Normal
- Defined in:
- lib/distrb/normal.rb
Overview
Normal distribution See: en.wikipedia.org/wiki/Normal_distribution
Defined Under Namespace
Classes: BoxMullerTransform
Instance Attribute Summary collapse
-
#sampler ⇒ Object
readonly
Returns the value of attribute sampler.
Instance Method Summary collapse
-
#initialize ⇒ Normal
constructor
A new instance of Normal.
Methods inherited from Distribution
Constructor Details
#initialize ⇒ Normal
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
#sampler ⇒ Object (readonly)
Returns the value of attribute sampler.
10 11 12 |
# File 'lib/distrb/normal.rb', line 10 def sampler @sampler end |