Skip to content

Commit

Permalink
fix samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdenobel committed Feb 13, 2024
1 parent a00881b commit 749dc1d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 96 deletions.
2 changes: 1 addition & 1 deletion include/ioh/common/sampler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace ioh::common::random::sampler
{
std::vector<T> res(this->n);
for (size_t i = 0; i < this->n; i++)
res[i] = (delta_ * (static_cast<T>(gen_()) / static_cast<T>(delta_g_))) + this->lb;
res[i] = static_cast<T>((delta_ * (static_cast<double>(gen_()) / static_cast<double>(delta_g_))) + this->lb);
return res;
}

Expand Down
Loading

0 comments on commit 749dc1d

Please sign in to comment.