public binCount(notnull weights as NDArray<Double>, minLength as Long = 0l) as NDArray<Double>
Weighted occurrence counts; each weight is added to its integer bin.
| Parameter | Description |
|---|---|
weights | Finite Double weights matching the 1D source shape. |
minLength | Minimum output length, non-negative. |
Double sum of weights per integer index.
counts = ids.binCount(weights=weights, minLength=10l)