numba_histogram_bin_edges

mdcraft.algorithm.accelerated.numba_histogram_bin_edges(array: ndarray[float], n_bins: int) ndarray[float][source]

Serial Numba-accelerated function to compute the uniform histogram bin edges for a one-dimensional NumPy array \(\mathbf{a}\) and a specified number of bins \(N_\mathrm{bins}\).

Parameters:
arraynp.ndarray

One-dimensional array \(\mathbf{a}\).

n_binsint

Number of bins \(N_\mathrm{bins}\).

Returns:
bin_edgesnp.ndarray

Uniform histogram bin edges for the array \(\mathbf{a}\).