Skip to content

Commit

Permalink
Using convenience class ZigguratXoshiro256StarStarGaussianRng in test…
Browse files Browse the repository at this point in the history
… case
  • Loading branch information
ralfkonrad committed Jun 18, 2024
1 parent 10ede12 commit c7a6620
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test-suite/zigguratgaussian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "toplevelfixture.hpp"
#include <ql/math/randomnumbers/xoshiro256starstaruniformrng.hpp>
#include <ql/math/randomnumbers/zigguratgaussianrng.hpp>
#include <ql/math/statistics/incrementalstatistics.hpp>
#include <iostream>
Expand All @@ -31,11 +30,10 @@ BOOST_FIXTURE_TEST_SUITE(QuantLibTests, TopLevelFixture)
BOOST_AUTO_TEST_SUITE(ZigguratGaussianTests)

BOOST_AUTO_TEST_CASE(testStatisticsOfNextReal) {
BOOST_TEST_MESSAGE("Testing ZigguratGaussianRng<Xoshiro256StarStarUniformRng>::nextReal() for "
BOOST_TEST_MESSAGE("Testing ZigguratXoshiro256StarStarGaussianRng::nextReal() for "
"mean, variance, skewness and kurtosis...");
auto seed = 42UL;
auto uniformRandom = Xoshiro256StarStarUniformRng(seed);
auto random = ZigguratGaussianRng<Xoshiro256StarStarUniformRng>(uniformRandom);
auto random = ZigguratXoshiro256StarStarGaussianRng(seed);

auto randoms = IncrementalStatistics();

Expand Down

0 comments on commit c7a6620

Please sign in to comment.