UNPKG

downsample-lttb-ts

Version:

Minimal weight downsample N array of numbers to K array of numbers squashed up.

14 lines (13 loc) 382 B
declare type Point = number[]; declare type Series = Point[]; declare type Threshold = number; declare type Props = { series: Series; threshold: Threshold; }; export declare const singularDownSample: ({ series, threshold, }: { series: Point; threshold: Threshold; }) => number[]; export declare const downsample: ({ series, threshold }: Props) => Series; export {};