gemseo / uncertainty / distributions / scipy

Show inherited members

factory module

Module containing a factory to create an instance of SPDistribution.

class gemseo.uncertainty.distributions.scipy.factory.SPDistributionFactory[source]

Bases: DistributionFactory

Factory to create a SPDistribution from its class name.


>>> from gemseo.uncertainty.distributions.factory import DistributionFactory
>>> factory = DistributionFactory()
>>> factory.is_available("OTNormalDistribution")
>>> factory.available_distributions[-3:]
['SPNormalDistribution', 'SPTriangularDistribution', 'SPUniformDistribution']
>>> distribution = factory.create("OTNormalDistribution", "x")
>>> print(distribution)
Normal(mu=0.0, sigma=1.0)
Return type:


failed_imports: dict[str, str]

The class names bound to the import errors.