1+ #include < numeric>
2+
13#include " Tracer/CpuTracer.h"
24#include " setupTests.h"
35
@@ -14,9 +16,9 @@ TEST_F(TestSuite, testUniformRandom) {
1416}
1517
1618TEST_F (TestSuite, testNormalRandom) {
17- uint64_t ctr = 13 ; // seed value
18- double mu = 0.0 ; // mean
19- double sigma = 1.0 ; // standard deviation
19+ uint64_t ctr = 13 ; // seed value
20+ double mu = 0.0 ; // mean
21+ double sigma = 1.0 ; // standard deviation
2022
2123 // Vectors to store the generated random numbers and their z-scores
2224 std::vector<double > random_numbers;
@@ -25,7 +27,7 @@ TEST_F(TestSuite, testNormalRandom) {
2527 for (int i = 0 ; i < 1000 ; i++) {
2628 double Z = CPU_TRACER::squaresNormalRNG (ctr, mu, sigma);
2729 random_numbers.push_back (Z);
28-
30+
2931 // Calculate z-score and store
3032 double z_score = (Z - mu) / sigma;
3133 z_scores.push_back (z_score);
@@ -47,7 +49,6 @@ TEST_F(TestSuite, testNormalRandom) {
4749 CHECK (count > int (0.95 * z_scores.size ()));
4850}
4951
50-
5152TEST_F (TestSuite, testSin) {
5253 std::vector<double > args = {
5354 -0.5620816275750421 , -0.082699735953560394 , -0.73692442452247864 , -0.93085577907030514 , 0.038832744045494971 , 0.86938579245347758 ,
0 commit comments