bug fix in speed test, and even faster binning

This commit is contained in:
Hans Dembinski
2016-07-17 12:03:57 -04:00
parent 40f61fe49a
commit 0cc7f02c82
4 changed files with 26 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ std::vector<double> random_array(unsigned n, int type) {
std::vector<double> result(n);
std::default_random_engine gen(1);
if (type) { // type == 1
std::normal_distribution<> d(0.0, 0.3);
std::normal_distribution<> d(0.5, 0.3);
for (auto& x : result)
x = d(gen);
}