Merge pull request #1890 from ojschumann/rational_dist

Rational univariate distribution
This commit is contained in:
Paul Romano 2021-10-12 22:26:02 -05:00 committed by GitHub
commit c2fe6327e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 234 additions and 8 deletions

View file

@ -638,6 +638,11 @@ variable and whose sub-elements/attributes are as follows:
numbers :math:`a` and :math:`b` that define the interval :math:`[a,b]` over
which random variates are sampled.
For a "powerlaw" distribution, ``parameters`` should be given as three real
numbers :math:`a` and :math:`b` that define the interval :math:`[a,b]` over
which random variates are sampled and :math:`n` that defines the exponent of
the probability distribution :math:`p(x)=c x^n`
For a "discrete" or "tabular" distribution, ``parameters`` provides the
:math:`(x,p)` pairs defining the discrete/tabular distribution. All :math:`x`
points are given first followed by corresponding :math:`p` points.

View file

@ -15,6 +15,7 @@ Univariate Probability Distributions
openmc.stats.Univariate
openmc.stats.Discrete
openmc.stats.Uniform
openmc.stats.PowerLaw
openmc.stats.Maxwell
openmc.stats.Watt
openmc.stats.Tabular