Module math::iter::binned_interval_iter
source · Expand description
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
- With imaginary bins of size
bin_size
and aligned at0
, returns a value for each bin that intersects one or more intervals from the original iteratoriter
, where the value at each intersection is obtained by applying the operation specified by theaggregate_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 theaggregate_op
isSum
.
Enums
- The value of the associated with
Min
andMax
are the initial min and max values.