Changeset 116:b6bede534255 in lemon for lemon/random.h
 Timestamp:
 04/03/08 14:00:18 (15 years ago)
 Branch:
 default
 Children:
 117:7b0ce9fb1169, 123:8899d1891a3c
 Phase:
 public
 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.