![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Namespaces | |
| namespace | internal |
Functions | |
| template<std::size_t M> | |
| std::vector< std::array< double, M > > | additiveRecurrence (std::size_t n0, std::size_t n1) |
| Generates a sequence of points using an additive recurrence formula. | |
| std::vector< std::array< double, M > > vulpes::random::additiveRecurrence | ( | std::size_t | n0, |
| std::size_t | n1 ) |
Generates a sequence of points using an additive recurrence formula.
| M | The dimension of each point in the generated sequence. |
| n0 | The starting index for the sequence. |
| n1 | The ending index (exclusive) for the sequence. |
The function generates a sequence of points using an additive recurrence formula, based on the reciprocal of \( \phi_m \), the root of the equation \( x^{m+1} = x + 1 \).
For each dimension \( m \), the recurrence formula is:
\[\text{pt}[m] = \text{fmod}(0.5 + \phi_m^{-1} \cdot i, 1.0) \]
where \( i \) is the sequence index and \( \phi_m^{-1} \) is the inverse of \( \phi_m \).
See: https://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/