AutoMovie API
    Preparing search index...
    • The periodic cubic spline through values at the equally spaced phases 2 pi j / m: the C2 periodic curve of least bending through them, read at any phase.

      Its knot curvatures M solve M[j-1] + 4 M[j] + M[j+1] = 6 (y[j+1] - 2 y[j] + y[j-1]) / h^2 round the cycle, h = 2 pi / m. The system is strictly diagonally dominant, so Jacobi's iteration contracts the error by at least one half a sweep; 64 sweeps leave less than 2^-64 of the first one.

      Parameters

      • values: readonly number[]

        The values at the m >= 3 phases.

      Returns (psi: number) => number

      The spline as a function of phase, radians, any real.