Function binCounts
Bins data into nbin equal width bins, indexed from 0 to nbin - 1, with 0 being the smallest bin, etc. The values returned are the counts for each bin.
Ret[] binCounts(Ret, T)
(
T data,
uint nbin,
Ret[] buf = null
)
if (isForwardRange!T && doubleInput!T);
Works with any forward range with elements implicitly convertible to double.