openmc.stats.Mixture

class openmc.stats.Mixture(probability, distribution)[source]

Probability distribution characterized by a mixture of random variables.

Parameters
  • probability (Iterable of Real) – Probability of selecting a particular distribution

  • distribution (Iterable of Univariate) – List of distributions with corresponding probabilities

Variables
  • probability (Iterable of Real) – Probability of selecting a particular distribution

  • distribution (Iterable of Univariate) – List of distributions with corresponding probabilities

classmethod from_xml_element(elem)[source]

Generate mixture distribution from an XML element

New in version 0.13.0.

Parameters

elem (xml.etree.ElementTree.Element) – XML element

Returns

Mixture distribution generated from XML element

Return type

openmc.stats.Mixture

to_xml_element(element_name)[source]

Return XML representation of the mixture distribution

New in version 0.13.0.

Parameters

element_name (str) – XML element name

Returns

element – XML element containing mixture distribution data

Return type

xml.etree.ElementTree.Element