ism3d.maths.stats.pdf2rv

ism3d.maths.stats.pdf2rv(x, pdf, size=100000, seed=None)[source]

Generate a pseudo-random random variable set following a target distribution described by the PDF using the inverse transform / pesudo-random number sampling method

The result should stay within the range of pdf_x