Skip to content

Commit

Permalink
Small comment change in math.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Sallermann committed Oct 15, 2023
1 parent d149609 commit f5939ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/util/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ void reservoir_sampling_A_ExpJ(

/**
* @brief Power law distribution for random numbers.
* A continuous random distribution on the range [eps, infty) with equal
* distribution
* A continuous random distribution on the range [eps, infty)
* with p(x) ~ x^(-gamma)
* Including normalization the PDF is
* p(x) = (1-gamma)/(1-eps^(1-gamma)) * x^(-gamma)
*/
template<typename ScalarT = double>
Expand Down

0 comments on commit f5939ea

Please sign in to comment.