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); }