Tests for random nodes.
More...
|
template<typename T > |
T | autocorrelation (const std::vector< T > &sequence, const size_t offset) |
| Compute the auto correlation for a specific offset.
|
|
template<jit::float_scalar T, size_t N> |
void | test_dist () |
| Run test with a specified backend.
|
|
template<jit::float_scalar T> |
void | test_graph () |
| Test graph properties of random numbers.
|
|
template<jit::float_scalar T, size_t N> |
void | run_tests () |
| Run tests.
|
|
int | main (int argc, const char *argv[]) |
| Main program of the test.
|
|
◆ autocorrelation()
template<typename T >
T autocorrelation |
( |
const std::vector< T > & |
sequence, |
|
|
const size_t |
offset |
|
) |
| |
Compute the auto correlation for a specific offset.
- Template Parameters
-
- Parameters
-
[in] | sequence | Random sequence. |
[in] | offset | Offset of the correlation. |
- Returns
- The autocorrelation for a given offset.
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Main program of the test.
- Parameters
-
[in] | argc | Number of commandline arguments. |
[in] | argv | Array of commandline arguments. |
◆ run_tests()
Run tests.
- Template Parameters
-
T | Base type of the calculation. |
N | Number of random numbers to use. |
◆ test_dist()
Run test with a specified backend.
- Template Parameters
-
T | Base type of the calculation. |
N | Number of random numbers to use. |