Class: Curver::ChannelCurve

Inherits:
Struct
  • Object
show all
Defined in:
lib/curver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



14
15
16
# File 'lib/curver.rb', line 14

def points
  @points
end

Instance Method Details

#polynomObject



20
21
22
# File 'lib/curver.rb', line 20

def polynom
  @polynom ||= Curver.compute_polynom(points, range)
end

#rangeObject



16
17
18
# File 'lib/curver.rb', line 16

def range
  @range ||= Curver.range(self.points)
end