getHist#
- mlquantify.utils.method.getHist(scores, nbins)[source]#
Calculate histogram-like bin probabilities for a given set of scores.
This function divides the score range into equal bins and computes the proportion of scores in each bin, normalized by the total count.
- Parameters:
- scoresnp.ndarray
A 1-dimensional array of scores.
- nbinsint
Number of bins for dividing the score range.
- Returns:
- np.ndarray
An array containing the normalized bin probabilities.
Notes
The bins are equally spaced between 0 and 1, with an additional upper boundary to include the maximum score.
The returned probabilities are normalized to account for the total number of scores.