srxraylib.util.inverse_method_sampler

Classes for creating random points following a given numeric distribution using the inverse method. Covers 1D, 2D and 3D sampling.

See tests for examples of use.

Classes

Sampler1D(pdf[, pdf_x, cdf_interpolation_factor])

Constructor.

Sampler2D(pdf[, pdf_x0, pdf_x1])

Constructor.

Sampler3D(pdf[, pdf_x0, pdf_x1, pdf_x2])

Constructor.