Class: Normcore::LogNormal

Inherits:
Normal show all
Defined in:
lib/log_normal.rb

Overview

The log-normal distribution

en.wikipedia.org/wiki/Log-normal_distribution

Instance Attribute Summary

Attributes inherited from Normal

,

Instance Method Summary collapse

Methods inherited from Normal

#initialize

Methods inherited from Base

#sample

Constructor Details

This class inherits a constructor from Normcore::Normal

Instance Method Details

#rngObject



8
9
10
# File 'lib/log_normal.rb', line 8

def rng
  Math.exp(box_muller)
end