@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
26 lines • 975 B
TypeScript
import type { Transducer } from "./api.js";
/**
* Pre-configured version of {@link interpolate} for numeric values and using
* cubic hermite interpolation.
*
* @remarks
* The number of samples per interval is configurable. No values will be
* produced if there're less than 4 inputs.
*
* Note: Due to the nature of hermite interpolation, the very first and last
* input are only used to compute the curve tangents, but will not appear in the
* output. Use the {@link extendSides} iterator to transform the input so that
* these values are duplicated and so are used as part of an interpolation
* interval.
*
* See also:
*
* - {@link interpolate}
* - {@link interpolateLinear}
* - {@link extendSides}
*
* @param n -
*/
export declare function interpolateHermite(n: number): Transducer<number, number>;
export declare function interpolateHermite(n: number, src: Iterable<number>): IterableIterator<number>;
//# sourceMappingURL=interpolate-hermite.d.ts.map