Environment: Siren
Instances of FourierSummation are functions that interpret their points as 3-element arrays (harmonic, amplitude, phase), and sum sine waves into their data array based on the fourier summation of these components.
Instance variables:
myForm
computing
Compute the block by sine summation--set the values in the cached array.
computeValueAt: anIndex
Compute the answer by sine summation.
accessing
Add the argument to the receiver's point collection.
at: theIndex
Answer the value from my array--assume an index in the range 0 to 1
MetaClass: FourierSummation class
instance creation
Answer a default instance of the receiver class.
from: anArrayOfZPoints
Answer a sum-of-sines function with the given points.
examples
Make a Sine summation that approaches a square wave
fourierViewExample
Make a Sine summation that approaches a square wave and open a view on it.