Table of Contents

Delegate DirectILKernelGenerator.HistogramIndicesKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

samples void*

Contiguous buffer of samples in dtype B (count elements).

count long

Number of samples.

binEdges void*

Contiguous buffer of nbins+1 bin edges in dtype B.

first double

Lower outer edge (first_edge), always passed as double.

last double

Upper outer edge (last_edge), always passed as double.

nbins int

Number of equal-width bins; the sentinel out-of-range bin is this value.

outIndices long*

Output buffer of count int64 bin indices in [0, nbins].