Changes in lemon/random.h [116:b6bede534255:110:f2d66d810c88] in lemon-1.2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/random.h
r116 r110 796 796 } 797 797 } while(nu>std::pow(xi,delta-1.0)*std::exp(-xi)); 798 return theta*(xi +gamma(int(std::floor(k))));798 return theta*(xi-gamma(int(std::floor(k)))); 799 799 } 800 800 … … 820 820 double pareto(double k,double x_min) 821 821 { 822 return exponential(gamma(k,1.0/x_min)) +x_min;822 return exponential(gamma(k,1.0/x_min)); 823 823 } 824 824
Note: See TracChangeset
for help on using the changeset viewer.