mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
randomT_test.cpp File Reference
#include "../../catch2/catch.hpp"
#include <Eigen/Dense>
#include "../../../include/math/randomT.hpp"

Go to the source code of this file.

Functions

 SCENARIO ("Verify compilation and basic operation of randomT with std::distributions", "[math::randomT]")
 
 SCENARIO ("Verify compilation and basic operation of randomT with the Laplace distribution", "[math::laplace_distribution]")
 

Function Documentation

◆ SCENARIO() [1/2]

SCENARIO ( "Verify compilation and basic operation of randomT with std::distributions"  ,
""  [math::randomT] 
)
Test:
Scenario: Verify compilation and basic operation of randomT with std::distributions.

Basic tests include verification that seeding works. Note that there is the very slight possibility that normal operation could return two consecutive variates with the same value which would cause some of the below tests to fail. Will probably never happen . . .

Definition at line 19 of file randomT_test.cpp.

References mx::math::randomT< typeT, _ranengT, _randistT >::seed().

◆ SCENARIO() [2/2]

SCENARIO ( "Verify compilation and basic operation of randomT with the Laplace distribution"  ,
""  [math::laplace_distribution] 
)
Test:
Scenario: Verify compilation and basic operation of randomT with the Laplace distribution

Basic tests include verification that seeding works. Note that there is the very slight possibility that normal operation could return two consecutive variates with the same value which would cause some of the below tests to fail. Will probably never happen . . .

Definition at line 108 of file randomT_test.cpp.

References mx::math::randomT< typeT, _ranengT, _randistT >::seed().