BinBy<T, R extends num?> class Binning data

Equivalent do Bin, except that it allows for customized data processing and flexible binning based on specific attributes of the data elements.

Implementers

Constructors

BinBy.new(R value(T))
Constructs a new bin generator with the default settings and the specified value accessor.

Properties

domain ↔ (num?, num?) Function(Iterable<R>)
Returns the domain of visible values for a given list of data samples when bins are generated.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thresholds Object Function(Iterable<R>, num, num)
Returns a list of bin thresholds or count indicating the boundaries between bins for a given list of data samples and the domain (min, max).
getter/setter pair
value ↔ R Function(T)
A function that is invoked for each element in the input data list when the bins are generated.
getter/setter pair

Methods

call(Iterable<T> data, [void handleBounds(List<(num, num)>)?]) List<List<T>>
Bins the given iterable of data samples into separate groups (bins), based on their values or properties.
constDomain((num?, num?) domain) → void
A special setter that defines a constant Bin.domain generator given the specified domain.
constThresholds(Object thresholds) → void
A special setter that defines a constant Bin.thresholds generator given the specified thresholds.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withBounds(Iterable<T> data) → (List<List<T>>, List<(num, num)>)
Equivalent to the call function but additionally returns the computed bin bounds.

Operators

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