UQTestFuns API Reference Guide
UQTestFuns API Reference Guide#
This reference guide contains a detailed description of the most important elements of the UQTestFuns package.
To make sense of how the objects in UQTestFuns are organized, let’s start from the top, the built-in test functions:
Each of the built-in UQ test functions is a concrete implementation of the abstract base class UQTestFunABC. The base class, in turns, is derived from UQTestFunABC). Therefore, all the instances share the same underlying interfaces. In particular, all instances share, among other things, the
evaluate()
method, theprob_input
property, and theparameters
property 1.The
prob_input
property stores the underlying probabilistic input model of the instance. This in turn is represented by the ProbInput class. In principle, an instance of the class is a multivariate random variable that represents the input of an uncertainty quantification (UQ) test function.An instance of the
ProbInput
class consists mainly of the one-dimensional marginals and a copula specification (not yet supported). Each one-dimensional marginal comes from a univariate random variable which in turn is represented by the UnivDist class.An instance of class
UnivDist
has a (parametric) probability distribution. Although different instances may have different probability distributions, they are all instances of the same class.As lightweight containers to specify the specifications of a
ProbInput
and aUnivDist
, three customNamedTuple
are defined, namely UnivDistSpec, ProbInputSpecFixDim, and ProbInputSpecVarDim.
Note
To facilitate the creation of a custom UQ test function in runtime or within a running Python session, UQTestFuns also includes the concrete UQTestFun class. You can see the usage here.
Additionally, there is currently one top-level convenient function used to list all available built-in functions. The function can return both a table on the terminal or a list of constructors ready to be called.
- 1
These three are the defining elements of a UQ test function.