AutoMovie API
    Preparing search index...

    Class AutoMoviePchipField64

    Componentwise Fritsch–Butland interpolation with exposed local power coefficients and station derivatives. Coordinates and component values use caller-defined consistent units; queries outside the station range extrapolate the first or last polynomial. Optional station or endpoint derivatives replace the corresponding slope seeds without normalization or unit conversion; those authored slopes can overshoot and do not retain the default shape-preserving rule.

    Index
    • Build finite coefficients on increasing coordinates with corresponding equal-length component rows. Coordinate/value arrays must remain stable for the field's lifetime; supplied derivatives are copied. Invalid supports, slope shapes or nonfinite coefficients throw before an instance is returned.

      Parameters

      • x: readonly number[]

        Increasing coordinates in one caller-owned chart.

      • y: readonly (readonly number[])[]

        Finite component rows in fixed corresponding order.

      • Optionalderivatives: Derivatives

        Component values per coordinate unit, either all station rows or selected endpoint rows; omitted entries keep their original Fritsch–Butland seeds. No spatial normalization or unit conversion occurs.

      Returns AutoMoviePchipField64

    coefficients: number[][][]

    Per-interval and per-component power coefficients [cubic, quadratic, derivative, value] relative to the interval start.

    derivatives: number[][]

    Station derivatives in component units per coordinate unit.

    x: readonly number[]

    Increasing coordinates in one caller-owned chart.

    y: readonly (readonly number[])[]

    Finite component rows in fixed corresponding order.

    • Evaluate every component or its first/second derivative, selecting the right interval at an interior knot. False/0 reads values, true/1 reads first derivatives, and 2 reads second derivatives, in component units per coordinate unit squared. Values outside the coordinate range extrapolate the nearest interval; the caller owns a narrower supported domain when needed. Nonfinite queries or generated results throw. Endpoint derivative queries keep the existing Horner arithmetic and may differ from an authored slope by rounding.

      Parameters

      • value: number
      • derivative: boolean | 0 | 2 | 1 = false

      Returns number[]