Class: MixedModels::PointValuePair

Inherits:
Object
  • Object
show all
Defined in:
lib/mixed_models/NelderMeadWithConstraints.rb

Overview

class which holds the point,value pair

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pointObject (readonly)

Returns the value of attribute point.



29
30
31
# File 'lib/mixed_models/NelderMeadWithConstraints.rb', line 29

def point
  @point
end

#valueObject

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_cloneObject

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