Changes in lemon/random.h [110:f2d66d810c88:116:b6bede534255] in lemon1.2
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/random.h
r110 r116 796 796 } 797 797 } while(nu>std::pow(xi,delta1.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)) ;822 return exponential(gamma(k,1.0/x_min))+x_min; 823 823 } 824 824
Note: See TracChangeset
for help on using the changeset viewer.