Class: Kamelopard::Functions::Function1D

Inherits:
Function
  • Object
show all
Defined in:
lib/kamelopard/function.rb

Overview

get_value and run_function return a single scalar value

Direct Known Subclasses

Cubic

Instance Attribute Summary

Attributes inherited from Function

#append, #compose, #end, #max, #min, #start, #verbose

Instance Method Summary collapse

Methods inherited from Function

#get_value, #initialize, interpolate, #run_function

Constructor Details

This class inherits a constructor from Kamelopard::Functions::Function

Instance Method Details

#compose=(f) ⇒ Object


85
86
87
88
# File 'lib/kamelopard/function.rb', line 85

def compose=(f)
    raise "Can only compose another one-dimensional function" unless f.kind_of? Function1D or f.nil?
    @compose = f
end