iq_readout.pdfs.pdf_from_hist1d#
- pdf_from_hist1d(x, bins, pdf_values)[source]#
Returns the PDF value from the 1D histogram bins closest to x.
- Parameters:
- xnp.ndarray(…)
Points in the 1D space.
- bins: np.ndarray(n_bins)
Centers of the bins of the 1D histogram.
- pdf_values: np.ndarray(n_bins)
Normalized counts of the 1D histogram.
- Returns:
- prob: np.ndarray(…)
Values of the probability density function.