openmc.stats.Normal¶
- class openmc.stats.Normal(mean_value, std_dev)[source]¶
Normally distributed sampling.
The Normal Distribution is characterized by two parameters \(\mu\) and \(\sigma\) and has density function \(p(X) dX = 1/(\sqrt{2\pi}\sigma) e^{-(X-\mu)^2/(2\sigma^2)}\)
- Parameters
- Variables
- classmethod from_xml_element(elem)[source]¶
Generate Normal distribution from an XML element
- Parameters
elem (xml.etree.ElementTree.Element) – XML element
- Returns
Normal distribution generated from XML element
- Return type
- sample(n_samples=1, seed=None)[source]¶
Sample the univariate distribution
- Parameters
- Returns
A 1-D array of sampled values
- Return type