Function: reconstructSample()
reconstructSample(
coefficients,t):Complex
Defined in: src/mobjects/graphing/fourier.ts:87
Evaluate the complex sum of rotating vectors at normalized time t.
Each coefficient contributes amplitude · e^(i · (2π · freq · t + phase)).
At t = sampleIndex / N this reproduces the original sample exactly, so the
full coefficient set round-trips the input of fourierCoefficients.
Parameters
coefficients
Coefficients to sum (any order; order does not change the sum).
t
number
Normalized time; one full period spans t ∈ [0, 1).
Returns
Complex
The summed complex value.