We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9d160 commit 1e1b572Copy full SHA for 1e1b572
1 file changed
src/weights.cpp
@@ -156,7 +156,7 @@ namespace parameters
156
void Weights::weights_default(const size_t mu, const size_t lambda)
157
{
158
const Float ratio = static_cast<Float>(lambda) / static_cast<Float>(mu);
159
- const Float base = std::log((static_cast<Float>(lambda) + 1.) / std::round(ratio));
+ const Float base = std::log((static_cast<Float>(lambda) + 1.) / std::floor(ratio));
160
161
for (auto i = 0; i < positive.size(); ++i)
162
positive(i) = base - std::log(static_cast<Float>(i + 1));
0 commit comments