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