Skip to content

Commit 1e1b572

Browse files
committed
floor ratio
1 parent cc9d160 commit 1e1b572

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/weights.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ namespace parameters
156156
void Weights::weights_default(const size_t mu, const size_t lambda)
157157
{
158158
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));
159+
const Float base = std::log((static_cast<Float>(lambda) + 1.) / std::floor(ratio));
160160

161161
for (auto i = 0; i < positive.size(); ++i)
162162
positive(i) = base - std::log(static_cast<Float>(i + 1));

0 commit comments

Comments
 (0)