gemseo.uncertainty.distributions.scipy.weibull module#

The SciPy-based Weibull distribution.

class SPWeibullDistribution(location=0.0, scale=1.0, shape=1.0, use_weibull_min=True)[source]#

Bases: SPDistribution

The SciPy-based Weibull distribution.

Examples

>>> from gemseo.uncertainty.distributions.scipy.distribution import (
...     SPDistribution,
... )
>>> distribution = SPDistribution("expon", {"loc": 3, "scale": 1 / 2.0})
>>> print(distribution)
expon(loc=3, scale=0.5)

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

Parameters:
  • location (float) --

    The location parameter of the Weibull distribution.

    By default it is set to 0.0.

  • scale (float) --

    The scale parameter of the Weibull distribution.

    By default it is set to 1.0.

  • shape (float) --

    The shape parameter of the Weibull distribution.

    By default it is set to 1.0.

  • use_weibull_min (bool) --

    Whether to use the Weibull minimum extreme value distribution (the support of the random variable is \([\gamma,+\infty[\)) or the Weibull maximum extreme value distribution (the support of the random variable is \(]-\infty[,\gamma]\)).

    By default it is set to True.