histogram_intervals#
- astropy.stats.histogram_intervals(n: int, breaks: NDArray[float], totals: NDArray[float]) NDArray[float][source]#
 Histogram of a piecewise-constant weight function.
This function takes a piecewise-constant weight function and computes the average weight in each histogram bin.
- Parameters:
 - n
python:int The number of bins
- breaks(N,) 
arrayofpython:float Endpoints of the intervals in the PDF
- totals(N-1,) 
arrayofpython:float Probability densities in each bin
- n
 - Returns:
 - h
arrayofpython:float The average weight for each bin
- h