[][src]Module math::iter::binned_interval_iter

Binning the iterator output into fixed size intervals if the output is of the form (I64Interval, T). Only bins with non-empty intersections with those intervals will be returned.

Structs

BinnedIntervalIter

With imaginary bins of size bin_size and aligned at 0, returns a value for each bin that intersects one or more intervals from the original iterator iter, where the value at each intersection is obtained by applying the operation specified by the aggregate_op for all the overlapping intervals and their associated values, where the value of each overlapping interval is multiplied by the length of the interval if the aggregate_op is Sum.

Enums

AggregateOp

The value of the associated with Min and Max are the initial min and max values.

Traits

IntoBinnedIntervalIter