Skip to content

Commit

Permalink
missed negative exponent...
Browse files Browse the repository at this point in the history
  • Loading branch information
arashbm committed Nov 8, 2024
1 parent ff90bdf commit 9576372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace reticula {
return u*_mean;

return _x_min * std::pow(
(1.0-u) * (_exponent-1.0), 1.0/(_exponent-2.0));
(1.0-u) * (_exponent-1.0), -1.0/(_exponent-2.0));
}

template <std::floating_point RealType>
Expand Down

0 comments on commit 9576372

Please sign in to comment.