Skip to content

Commit

Permalink
Merge pull request #300 from damar-wicaksono/dev-295
Browse files Browse the repository at this point in the history
Fix Issue #295: Be more explicit about the need for UQTestFuns.
  • Loading branch information
damar-wicaksono authored Aug 24, 2023
2 parents 7e4ac72 + 225ee53 commit 2bd0987
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
3 changes: 2 additions & 1 deletion docs/development/adding-test-function-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Adding a New Test Function Implementation

In this guide, we will explain how to implement a new UQ test function into the UQTestFuns code base.
A test function may be added on runtime using the ``UQTestFun`` class as illustrated {ref}`here <getting-started:creating-a-custom>`.
A test function may be added on runtime using the ``UQTestFun`` class
as illustrated {ref}`here <getting-started:tutorial-custom-functions>`.
However, adding the test function directly to the code base is advantageous
that it becomes exposed to the high-level convenient functionalities
(such as `list_functions()`).
Expand Down
15 changes: 12 additions & 3 deletions docs/getting-started/about-uq-test-functions.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
(getting-started:about-uq-test-functions)=
# About UQ Test Functions

If you're interested in some background information about the what and why of uncertainty quantification (UQ) test functions,
their role within UQ analysis methods development, and how to usually get them, read on.
This page provides some background information about the what and why
of uncertainty quantification (UQ) test functions,
their role within UQ analysis methods development,
how to usually get them,
as well as the motivation behind UQTestFuns.

## What are UQ test functions

Expand Down Expand Up @@ -212,8 +215,14 @@ Specifically, none of them provides:
- an _opportunity for an open-source contribution_, supporting
the implementation of new test functions or posting reference results.

Satisfying all the above requirements is exactly the goal
Satisfying all the above requirements is exactly the goal
of the UQTestFuns package.
In essence, UQTestFuns aims to save the researchers' and developers' time
from having to reimplement many of the commonly used test functions from the
UQ literature themselves.
The available functions in UQTestFuns are ready to use
for testing and benchmarking purposes.


## References

Expand Down
12 changes: 9 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Specifically, the package provides:
- an _opportunity for an open-source contribution_, supporting
the implementation of new test functions or posting reference results.

UQTestFuns aims to save the researchers' and developers' time from having to
reimplement many of the commonly used test functions (and the corresponding
probabilistic input specifications) from the UQ literature themselves.
More background information regarding UQ test functions and UQTestFuns
can be found {ref}`here <getting-started:about-uq-test-functions>`.

::::{grid}
:gutter: 2

Expand All @@ -31,15 +37,15 @@ To the UQTestFuns Tutorials
:ref-type: myst
:color: primary
:outline:
The what & why of UQ test functions
About UQ Test Functions
```
:::

:::{grid-item-card} User Guide
:text-align: center

Be sure to browse through all the available test functions in UQTestFuns;
they are also crudely classified into their usage in typical UQ analyses.
Browse through all the available test functions in UQTestFuns;
they are crudely classified into their usage in typical UQ analyses.
Need a reference on how to define a probabilistic input model,
there's a dedicated section on that!
+++
Expand Down
2 changes: 1 addition & 1 deletion docs/test-functions/bratley1992b.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ my_testfun = uqtf.Bratley1992b(spatial_dimension=10)
The `Bratley1992b` function is defined as follows[^location]:

$$
\mathcal{M}(\boldsymbol{x}) = \prod_{m = 1}^{M} m \cos{(m x)},
\mathcal{M}(\boldsymbol{x}) = \prod_{m = 1}^{M} m \cos{(m x_m)},
$$

where $\boldsymbol{x} = \{ x_1, \ldots, x_M \}$
Expand Down
3 changes: 1 addition & 2 deletions docs/test-functions/speed-reducer-shaft.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ plt.gcf().set_dpi(150);
### Failure probability

Some reference values for the failure probability $P_f$ and from the literature
are summarized in the table below ($\mu_{F_s}$ is the log-normal distribution
mean of $F_s$).
are summarized in the table below.

| Method | $N$ | $\hat{P}_f$ | $\mathrm{CoV}[\hat{P}_f]$ | Source |
|:-------------:|:-------:|:-----------------------:|:-------------------------:|:--------------------------:|
Expand Down

0 comments on commit 2bd0987

Please sign in to comment.