Commit 0ac90170 authored by frey_m's avatar frey_m

fix BinomialTest.cpp

parent ae77f551
......@@ -57,7 +57,7 @@ TEST(BinomialTest, FullSigmaTest1) {
dist.checkIfEmitted();
size_t numParticles = 1000000;
dist.totalNumberParticles_m = numParticles;
dist.create(numParticles, Physics::m_p);
dist.create(numParticles, Physics::m_p, Physics::z_p);
double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3;
double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size()));
......@@ -139,7 +139,7 @@ TEST(BinomialTest, FullSigmaTest2) {
size_t numParticles = 1000000;
dist.totalNumberParticles_m = numParticles;
dist.create(numParticles, Physics::m_p);
dist.create(numParticles, Physics::m_p, Physics::z_p);
double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3;
double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment