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:
  • mean_value (float) – Mean value of the distribution
  • std_dev (float) – Standard deviation of the Normal distribution
Variables:
  • mean_value (float) – Mean of the Normal distribution
  • std_dev (float) – Standard deviation of the Normal distribution
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:openmc.stats.Normal
to_xml_element(element_name)[source]

Return XML representation of the Normal distribution

Parameters:element_name (str) – XML element name
Returns:element – XML element containing Watt distribution data
Return type:xml.etree.ElementTree.Element