| ... | ... |
@@ -800,12 +800,8 @@ |
| 800 | 800 |
/// |
| 801 |
///\param k shape parameter (<tt>k>0</tt>) |
|
| 801 | 802 |
///\param x_min location parameter (<tt>x_min>0</tt>) |
| 802 |
///\param k shape parameter (<tt>k>0</tt>) |
|
| 803 | 803 |
/// |
| 804 |
///\warning This function used inverse transform sampling, therefore may |
|
| 805 |
///suffer from numerical unstability. |
|
| 806 |
/// |
|
| 807 |
///\todo Implement a numerically stable method |
|
| 808 |
double pareto(double |
|
| 804 |
double pareto(double k,double x_min) |
|
| 809 | 805 |
{
|
| 810 |
return |
|
| 806 |
return exponential(gamma(k,1.0/x_min)); |
|
| 811 | 807 |
} |
0 comments (0 inline)