Skip to content

Commit 1b06282

Browse files
authored
chore: fix style and return values
PR-URL: #5871 Closes: #5863 Ref: a74d773 Reviewed-by: Athan Reines <[email protected]>
1 parent f0af2cb commit 1b06282

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/stats/base/dists/frechet/logcdf/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Evaluates the natural logarithm of the [cumulative distribution function][cdf] (
202202

203203
```c
204204
double y = stdlib_base_frechet_logcdf( 10.0, 2.0, 3.0, 2.0 );
205-
// returns ~0.141
205+
// returns ~-0.141
206206
```
207207

208208
The function accepts the following arguments:

lib/node_modules/@stdlib/stats/base/dists/frechet/logcdf/benchmark/c/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static double benchmark( void ) {
111111

112112
t = tic();
113113
for ( i = 0; i < ITERATIONS; i++ ) {
114-
y = stdlib_base_dists_frechet_logcdf( x[i%100], alpha[ i%100 ], s[ i%100 ], m[ i%100 ] );
114+
y = stdlib_base_dists_frechet_logcdf( x[ i%100 ], alpha[ i%100 ], s[ i%100 ], m[ i%100 ] );
115115
if ( y != y ) {
116116
printf( "should not return NaN\n" );
117117
break;

lib/node_modules/@stdlib/stats/base/dists/frechet/logcdf/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*
3333
* @example
3434
* double y = stdlib_base_dists_frechet_logcdf( 10.0, 2.0, 3.0, 2.0 );
35-
* // returns ~0.141
35+
* // returns ~-0.141
3636
*/
3737
double stdlib_base_dists_frechet_logcdf( const double x, const double alpha, const double s, const double m ) {
3838
double z;

0 commit comments

Comments
 (0)