Skip to content

Commit 69d59df

Browse files
fix: suggested changes
1 parent aaf7700 commit 69d59df

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ for ( i = 0; i < 100; i++ ) {
198198

199199
#### stdlib_base_dists_frechet_logcdf( x, alpha, s, m )
200200

201-
Returns the logcdf for a Fréchet distribution with input `x`, shape `alpha`, scale `s`, and location `m`.
201+
Evaluates the natural logarithm of the [cumulative distribution function][cdf] (CDF) for a [Fréchet][frechet-distribution] distribution with shape `alpha`, scale `s`, and location `m` at a value `x`.
202202

203203
```c
204204
double y = stdlib_base_frechet_logcdf( 10.0, 2.0, 3.0, 2.0 );
@@ -257,9 +257,9 @@ int main( void ) {
257257
alpha = random_uniform( 0.0, 10.0 );
258258
x = random_uniform( 0.0, 10.0 );
259259
s = random_uniform( 0.0, 10.0 );
260-
m = random_uniform( 0.0, 20.0 );
260+
m = random_uniform( 0.0, 10.0 );
261261
y = stdlib_base_dists_frechet_logcdf( x, alpha, s, m );
262-
printf( "x: %lf, alpha: %lf, s: %lf, m: %lf, F(x;alpha,s,m): %lf\n", x, alpha, s, m, y );
262+
printf( "x: %lf, alpha: %lf, s: %lf, m: %lf, ln(F(x;alpha,s,m)): %lf\n", x, alpha, s, m, y );
263263
}
264264
}
265265
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static double benchmark( void ) {
106106
x[ i ] = random_uniform( -50.0, 50.0 );
107107
alpha[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
108108
s[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
109-
m[ i ] = random_uniform( -20.0, 20.0 );
109+
m[ i ] = random_uniform( -20.0, 40.0 );
110110
}
111111

112112
t = tic();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ int main( void ) {
3838
alpha = random_uniform( 0.0, 10.0 );
3939
x = random_uniform( 0.0, 10.0 );
4040
s = random_uniform( 0.0, 10.0 );
41-
m = random_uniform( 0.0, 20.0 );
41+
m = random_uniform( 0.0, 10.0 );
4242
y = stdlib_base_dists_frechet_logcdf( x, alpha, s, m );
43-
printf( "x: %lf, alpha: %lf, s: %lf, m: %lf, F(x;alpha,s,m): %lf\n", x, alpha, s, m, y );
43+
printf( "x: %lf, alpha: %lf, s: %lf, m: %lf, ln(F(x;alpha,s,m)): %lf\n", x, alpha, s, m, y );
4444
}
4545
}

0 commit comments

Comments
 (0)