gemseo / uncertainty / statistics / tolerance_interval

uniform module

Computation of tolerance intervals from a data-fitted uniform distribution.

class gemseo.uncertainty.statistics.tolerance_interval.uniform.UniformToleranceInterval(size, minimum, maximum)[source]

Bases: ToleranceInterval

Computation of tolerance intervals from a data-fitted uniform distribution.

The formulae come from the R library tolerance [1].

Parameters:
  • size (int) – The number of samples.

  • minimum (float) – The estimation of the lower bound of the uniform distribution.

  • maximum (float) – The estimation of the upper bound of the uniform distribution.

compute(coverage, confidence=0.95, side=ToleranceIntervalSide.BOTH)

Compute a tolerance interval.

Parameters:
  • coverage (float) – A minimum percentage of belonging to the TI.

  • confidence (float) –

    A level of confidence in [0,1].

    By default it is set to 0.95.

  • side (ToleranceIntervalSide) –

    The type of the tolerance interval characterized by its sides of interest, either a lower-sided tolerance interval \([a, +\infty[\), an upper-sided tolerance interval \(]-\infty, b]\), or a two-sided tolerance interval \([c, d]\).

    By default it is set to BOTH.

Returns:

The tolerance bounds.

Return type:

Bounds

docstring_processor(parent_doc: Optional[str], child_func: Callable) None: Callable[[Optional[str], Callable], str] = <docstring_inheritance.processors.google.GoogleDocstringProcessor object>
Parameters:
Return type:

None