Class: NormalDistribution
- Inherits:
-
Object
- Object
- NormalDistribution
- Defined in:
- lib/flows_distributions/normal_distribution.rb
Instance Attribute Summary collapse
-
#mu ⇒ Object
readonly
Returns the value of attribute mu.
-
#var ⇒ Object
readonly
Returns the value of attribute var.
Instance Method Summary collapse
-
#initialize(mu, var) ⇒ NormalDistribution
constructor
A new instance of NormalDistribution.
Constructor Details
#initialize(mu, var) ⇒ NormalDistribution
Returns a new instance of NormalDistribution.
4 5 6 7 |
# File 'lib/flows_distributions/normal_distribution.rb', line 4 def initialize(mu, var) @mu = mu @var = var end |
Instance Attribute Details
#mu ⇒ Object (readonly)
Returns the value of attribute mu.
2 3 4 |
# File 'lib/flows_distributions/normal_distribution.rb', line 2 def mu @mu end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
2 3 4 |
# File 'lib/flows_distributions/normal_distribution.rb', line 2 def var @var end |