gemseo / uncertainty / statistics / tolerance_interval

Show inherited members

factory module

A factory of tolerance intervals.

class gemseo.uncertainty.statistics.tolerance_interval.factory.ToleranceIntervalFactory[source]

Bases: BaseFactory

A factory of BaseToleranceInterval.

Return type:

Any

create(class_name, size, *args)[source]

Return an instance of ToleranceInterval.

Parameters:
  • class_name (str) – The name of the class.

  • size (int) – The number of samples used to estimate the parameters of the probability distribution.

  • *args (float) – The arguments of the probability distribution.

Returns:

The instance of the class.

Raises:

TypeError – If the class cannot be instantiated.

Return type:

BaseToleranceInterval

get_class(name)[source]

Return a class from its name.

Parameters:

name (str) – The name of the class.

Returns:

The class.

Raises:

ImportError – If the class is not available.

Return type:

type[Any]

failed_imports: dict[str, str]

The class names bound to the import errors.