DoubleListSampler class

Samples List<double> directly, without allocating DataPoint objects.

Use this path inside ChartDataProcessor to avoid the: _extractDoubles → DataSampler.fromRaw (re-box) → sample → unbox round-trip that was previously wasting heap.

Constructors

DoubleListSampler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

auto(List<double> data, int threshold, {SamplingStrategy? forceStrategy}) List<double>
Auto-selects strategy. Same thresholds as DataSampler.auto.
autoIndices(List<double> data, int threshold, {SamplingStrategy? forceStrategy}) List<int>
Auto-selects strategy and returns sampled indices.
lttb(List<double> data, int threshold) List<double>
Returns sampled doubles from LTTB indices.
lttbIndices(List<double> data, int threshold) List<int>
LTTB on raw doubles. Returns indices of selected points.
minMax(List<double> data, int threshold) List<double>
Returns sampled doubles keeping local min/max per bucket.
minMaxIndices(List<double> data, int threshold) List<int>
Returns indices sampled with min/max bucket strategy.
nth(List<double> data, int threshold) List<double>
Returns every Nth point.
nthIndices(List<double> data, int threshold) List<int>
Returns sampled indices for Nth-point strategy.
resolveStrategyForLength(int finiteLength, {SamplingStrategy? forceStrategy}) SamplingStrategy
Auto strategy selection shared by every sampler entry point.