diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/README.md b/lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/README.md index 80124522d3d5..888a2f04a8f6 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/README.md @@ -171,8 +171,7 @@ The function accepts the following arguments: - **lambda**: `[in] double` shape parameter. ```c -double stdlib_base_dists_planck_logcdf -( const double x, const double lambda ); +double stdlib_base_dists_planck_logcdf( const double x, const double lambda ); ``` @@ -203,10 +202,6 @@ static double random_uniform( const double min, const double max ) { return min + ( v*(max-min) ); } -static int discrete_uniform( const int min, const int max ) { - return min + (rand() % (max - min + 1)); -} - int main( void ) { double lambda; double x; @@ -214,7 +209,7 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - x = discrete_uniform( 0, 40.0 ); + x = random_uniform( 0.0, 40.0 ); lambda = random_uniform( 0.1, 5.0 ); y = stdlib_base_dists_planck_logcdf( x, lambda ); printf( "x: %lf, λ: %lf, ln(F(x;λ)): %lf\n", x, lambda, y ); @@ -230,7 +225,6 @@ int main( void ) { -