gemseo / uncertainty / distributions

sp_cdist module

Composed distribution based on scipy

Overview

The SPComposedDistribution class is a concrete class inheriting from ComposedDistribution which is an abstract one.

Construction

The SPComposedDistribution of a list of given uncertain variables is built from a list of SPDistribution objects implementing the probability distributions of these variables based on the OpenTURNS library and from a copula name.

Note

A copula is a mathematical function used to define the dependence between random variables from their cumulative density functions. See more.

class gemseo.uncertainty.distributions.sp_cdist.SPComposedDistribution(distributions, copula='independent_copula')[source]

Bases: gemseo.uncertainty.distributions.distribution.ComposedDistribution

Scipy composed distribution.

Constructor.

Parameters
  • distributions (list(SPDistribution)) – list of OT distributions.

  • copula (str) – copula name.

COPULA = {'independent_copula': None}
cdf(vector)[source]

Evaluate the cumulative density functions of the marginals of a random variable for a given instance.

Parameters

vector (array) – instance of the random variable.

inverse_cdf(vector)[source]

Evaluate the inverses of the cumulative density functions of the marginals of a random variable for a given vector .

Parameters

vector (array) – vector of values comprised between 0 and 1 with same dimension as the random variable.