magpie.randoms.pdf2cdf
- magpie.randoms.pdf2cdf(xmid, pdf[, return_normpdf=True])
Calculates the CDF from a given PDF.
- Parameters
- xmidarray
Linearly spaced x-values given at the middle of a bin of length dx.
- pdfarray
Probabilty distribution function.
- return_normpdfbool, optional
Normalise PDF is also outputed.
- Returns
- xarray
X-coordinates.
- cdfarray
Cumulative distribution function with extreme points set 0 and 1.
- normpdfarray, optional
Normalised PDF.