Expand description
Histogram binning — fills a caller-owned counts buffer, no allocation.
Canonical home for equal-width binning. The caller owns the counts slice
(its length sets the bin count) and the returned range describes the binning.
Structs§
- Hist
Range - Range/width metadata for a binning pass.
Functions§
- histogram_
into - Equal-width histogram into the caller-owned
countsbuffer (zeroed first). The number of bins iscounts.len(). Values outside [min, max] are skipped; a value landing on/above the top edge falls in the last bin.Noneif the data is empty orcountsis empty.