From 349e023a2f4178fda45966e2a1d6ed6924477b05 Mon Sep 17 00:00:00 2001 From: vuule Date: Tue, 14 Dec 2021 16:15:55 -0800 Subject: [PATCH] rename --- .../common/random_distribution_factory.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cpp/benchmarks/common/random_distribution_factory.hpp b/cpp/benchmarks/common/random_distribution_factory.hpp index 8416654f03e..65dc8b4dd4d 100644 --- a/cpp/benchmarks/common/random_distribution_factory.hpp +++ b/cpp/benchmarks/common/random_distribution_factory.hpp @@ -22,23 +22,23 @@ #include /** - * @brief Generates a normal(binomial) distribution between zero and max_val. + * @brief Generates a normal(binomial) distribution between zero and upper_bound. */ template ::value, T>* = nullptr> -auto make_normal_dist(T max_val) +auto make_normal_dist(T upper_bound) { using uT = typename std::make_unsigned::type; - return std::binomial_distribution(max_val, 0.5); + return std::binomial_distribution(upper_bound, 0.5); } /** - * @brief Generates a normal distribution between zero and max_val. + * @brief Generates a normal distribution between zero and upper_bound. */ template ()>* = nullptr> -auto make_normal_dist(T max_val) +auto make_normal_dist(T upper_bound) { - T const mean = max_val / 2; - T const stddev = max_val / 6; + T const mean = upper_bound / 2; + T const stddev = upper_bound / 6; return std::normal_distribution(mean, stddev); }