Delegate DirectILKernelGenerator.HistogramWeightedKernel
Fused weighted histogram scatter for equal-width bins: for each in-range sample, add its (float64)
weight to the bin's running float64 total. Runs over ONE block; the caller casts the total to the
weight dtype and folds it into the result, replicating NumPy's per-block
n += bincount(block, w).astype(ntype) — no int64 indices array, no separate bincount pass.
public delegate void DirectILKernelGenerator.HistogramWeightedKernel(void* samples, void* weights, long count, void* binEdges, double first, double last, int nbins, double* totals)
Parameters
samplesvoid*Contiguous block of samples in dtype B.
weightsvoid*Contiguous block of float64 weights (same length).
countlongBlock length.
binEdgesvoid*Contiguous
nbins+1bin edges in dtype B.firstdoubleLower outer edge (double).
lastdoubleUpper outer edge (double).
nbinsintNumber of bins.
totalsdouble*Output float64 per-bin totals of length
nbins(pre-zeroed by the caller).