openmc.stats.Uniform
- class openmc.stats.Uniform(a: float = 0.0, b: float = 1.0)[source]
Distribution with constant probability over a finite interval [a,b]
- Parameters:
- Variables:
- classmethod from_xml_element(elem: Element)[source]
Generate uniform distribution from an XML element
- Parameters:
elem (lxml.etree._Element) – XML element
- Returns:
Uniform distribution generated from XML element
- Return type:
- mean() float[source]
Return mean of the uniform distribution
Added in version 0.15.3.
- Returns:
Mean of uniform distribution
- Return type: