Delegate DirectILKernelGenerator.HistogramIndicesKernel
Fused histogram bin-index kernel: maps each sample (pre-cast to the bin dtype B)
to its equal-width bin index, or to the sentinel bin nbins when out of range.
public delegate void DirectILKernelGenerator.HistogramIndicesKernel(void* samples, long count, void* binEdges, double first, double last, int nbins, long* outIndices)
Parameters
samplesvoid*Contiguous buffer of samples in dtype B (
countelements).countlongNumber of samples.
binEdgesvoid*Contiguous buffer of
nbins+1bin edges in dtype B.firstdoubleLower outer edge (
first_edge), always passed as double.lastdoubleUpper outer edge (
last_edge), always passed as double.nbinsintNumber of equal-width bins; the sentinel out-of-range bin is this value.
outIndiceslong*Output buffer of
countint64 bin indices in[0, nbins].