pymgipsim.Probability.pdfs_samplers.sample_pdfs¶
- sample_pdfs(normalized_pdf, sample_range, sample_size, rng_generator)[source]¶
Sample values from a given normalized probability density function (PDF).
Parameters: - normalized_pdf: np.ndarray
Normalized PDF values.
- sample_range: np.ndarray
Range of values to sample from.
- sample_size: int
Number of samples to generate.
rng_generator
Returns: - samples: np.ndarray
Sampled values based on the given PDF.