gemseo.uncertainty.distributions.openturns.uniform module#

The OpenTURNS-based uniform distribution.

class OTUniformDistribution(minimum=0.0, maximum=1.0, transformation='', lower_bound=None, upper_bound=None, threshold=0.5)[source]#

Bases: OTDistribution

The OpenTURNS-based uniform distribution.

Examples

>>> from gemseo.uncertainty.distributions.openturns.distribution import (
...     OTDistribution,
... )
>>> distribution = OTDistribution("Exponential", (3, 2))
>>> print(distribution)
Exponential(3, 2)

Initialize self. See help(type(self)) for accurate signature.

Parameters:
  • minimum (float) --

    The minimum of the uniform random variable.

    By default it is set to 0.0.

  • maximum (float) --

    The maximum of the uniform random variable.

    By default it is set to 1.0.

  • transformation (str) --

    A transformation applied to the random variable, e.g. \(\sin(x)\). If empty, no transformation.

    By default it is set to "".

  • lower_bound (float | None) -- A lower bound to truncate the probability distribution. If None, no lower truncation.

  • upper_bound (float | None) -- An upper bound to truncate the probability distribution. If None, no upper truncation.

  • threshold (float) --

    A threshold in [0,1] (see OpenTURNS documentation).

    By default it is set to 0.5.