Skip to content

lttbDownsample

lttbDownsample(data, target): LTTBPoint[]

Defined in: perf/lttb.ts:89

Downsample a number array to target points, returning the downsampled values and their original indices.

Parameters

data

number[]

target

number

Returns

LTTBPoint[]