SummaryPyramid class
A summary pyramid of one multi-channel signal: for each bucket of consecutive samples, per channel min, max, mean and standard deviation.
Level 0 buckets hold baseBucket samples; each level above combines fanout buckets of the level below. This lets a view of any length be drawn from a few thousand buckets instead of millions of samples.
Samples are appended with add; finish closes the partial buckets at the end. Buckets can be queried while samples are still being added.
Constructors
- SummaryPyramid(int channelCount)
Properties
- channelCount → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Samples added so far.
no setter
- levelCount → int
-
Number of levels with at least one bucket.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeInBytes → int
-
Memory used by the buckets, in bytes.
no setter
Methods
-
add(
Float64List row) → void -
Append one sample.
rowholds at least channelCount values; NaN values (missing data) are left out of the statistics. -
addColumns(
List< List< columns, int start, int length) → voiddouble> > -
Append
lengthsamples from per-channelcolumns, starting atstart. -
bucketCount(
int level) → int -
Number of complete (or, after finish, final partial) buckets at
level. -
finish(
) → void - Close the partial buckets at the end of the signal, so every sample is covered at every level up to a single top bucket. No samples can be added afterwards.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
range(
int level, int channel, int from, int to, Float64List out) → bool -
Min and max of
channelover buckets [from, to) oflevel, written toout(min, max). Faster than reduce when only the range is needed. Returns false if there is no data. -
reduce(
int level, int channel, int from, int to, SignalStats out) → void -
Merge the statistics of
channelover buckets [from, to) oflevelintoout. Buckets that do not exist yet are skipped. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bucketSize(
int level) → int -
Samples per bucket at
level.
Constants
- baseBucket → const int
- fanout → const int