openmc.stats.Discrete

class openmc.stats.Discrete(x, p)[source]

Distribution characterized by a probability mass function.

The Discrete distribution assigns probability values to discrete values of a random variable, rather than expressing the distribution as a continuous random variable.

Parameters:
  • x (Iterable of float) – Values of the random variable
  • p (Iterable of float) – Discrete probability for each value
Variables:
  • x (Iterable of float) – Values of the random variable
  • p (Iterable of float) – Discrete probability for each value