openmc.stats.Tabular¶
-
class
openmc.stats.
Tabular
(x, p, interpolation='linear-linear', ignore_negative=False)[source]¶ Piecewise continuous probability distribution.
This class is used to represent a probability distribution whose density function is tabulated at specific values with a specified interpolation scheme.
Parameters: - x (Iterable of float) – Tabulated values of the random variable
- p (Iterable of float) – Tabulated probabilities
- interpolation ({'histogram', 'linear-linear', 'linear-log', 'log-linear', 'log-log'}, optional) – Indicate whether the density function is constant between tabulated points or linearly-interpolated. Defaults to ‘linear-linear’.
- ignore_negative (bool) – Ignore negative probabilities
Variables: - x (Iterable of float) – Tabulated values of the random variable
- p (Iterable of float) – Tabulated probabilities
- interpolation ({'histogram', 'linear-linear', 'linear-log', 'log-linear', 'log-log'}, optional) – Indicate whether the density function is constant between tabulated points or linearly-interpolated.
-
to_xml_element
(element_name)[source]¶ Return XML representation of the tabular distribution
Parameters: element_name (str) – XML element name Returns: element – XML element containing tabular distribution data Return type: xml.etree.ElementTree.Element