lttb static method

List<double> lttb(
  1. List<double> data,
  2. int threshold
)

Returns sampled doubles from LTTB indices.

Implementation

static List<double> lttb(List<double> data, int threshold) {
  final indices = lttbIndices(data, threshold);
  return [for (final i in indices) data[i]];
}