openmc.stats.Mixture¶
- class openmc.stats.Mixture(probability: Sequence[float], distribution: Sequence[Univariate])[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
- clip(tolerance: float = 1e-06, inplace: bool = False) Mixture[source]¶
Remove low-importance points / distributions
Like
Discrete.clip(), this method will remove low-importance points from discrete distributions contained within the mixture but it will also clip any distributions that have negligible contributions to the overall intensity.New in version 0.14.0.
- classmethod from_xml_element(elem: Element)[source]¶
Generate mixture distribution from an XML element
New in version 0.13.0.
- Parameters
elem (lxml.etree._Element) – XML element
- Returns
Mixture distribution generated from XML element
- Return type
- integral()[source]¶
Return integral of the distribution
New in version 0.13.1.
- Returns
Integral of the distribution
- Return type