Skip to content

Commit

Permalink
return rhs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpsy committed Jun 9, 2020
1 parent 579ed51 commit 48e68fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shogun/preprocessor/RandomFourierGaussPreproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ SGMatrix<float64_t> RandomFourierGaussPreproc::sample_spectral_density(int32_t d
std::generate(
sampled_kernel.begin(), sampled_kernel.end(),
[this, &normal_dist, &width]() {
auto coeff = std::sqrt(2.0 / width) * normal_dist(m_prng);
return coeff;
return std::sqrt(2.0 / width) * normal_dist(m_prng);
});

return sampled_kernel;
Expand Down

0 comments on commit 48e68fa

Please sign in to comment.