mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Merge pull request #1890 from ojschumann/rational_dist
Rational univariate distribution
This commit is contained in:
commit
c2fe6327e2
9 changed files with 234 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue