AutoMovie API
    Preparing search index...
    • Least-squares coefficients of a closed curve sampled at uniform phases.

      With n samples at phases 2*pi*i/n and n > 2K, the sampled cosines and sines up to order K are orthogonal, so the normal equations are diagonal and the least-squares solution is the discrete Fourier projection computed here. The observation fitter supplies such samples after resampling a recovered section by its chain's phase rule; the generator never fits.

      Parameters

      • samples: readonly (readonly [number, number])[]

        [x, z] points in mm at phases 2*pi*i/n.

      • order: number

        Highest harmonic K.

      Returns number[]