Class: MixedModels::PointValuePair
- Inherits:
-
Object
- Object
- MixedModels::PointValuePair
- Defined in:
- lib/mixed_models/NelderMeadWithConstraints.rb
Overview
class which holds the point,value pair
Instance Attribute Summary collapse
-
#point ⇒ Object
readonly
Returns the value of attribute point.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#get_point_clone ⇒ Object
returns a copy of the point.
-
#initialize(point, value) ⇒ PointValuePair
constructor
Arguments.
Constructor Details
#initialize(point, value) ⇒ PointValuePair
Arguments
-
point
- Coordinates of the point -
value
- Function value at the point
36 37 38 39 |
# File 'lib/mixed_models/NelderMeadWithConstraints.rb', line 36 def initialize(point, value) @point = point.clone @value = value end |
Instance Attribute Details
#point ⇒ Object (readonly)
Returns the value of attribute point.
29 30 31 |
# File 'lib/mixed_models/NelderMeadWithConstraints.rb', line 29 def point @point end |
#value ⇒ Object
Returns the value of attribute value.
28 29 30 |
# File 'lib/mixed_models/NelderMeadWithConstraints.rb', line 28 def value @value end |
Instance Method Details
#get_point_clone ⇒ Object
returns a copy of the point
42 43 44 |
# File 'lib/mixed_models/NelderMeadWithConstraints.rb', line 42 def get_point_clone return @point.clone end |