Skip to content

Commit 3b2313f

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 6291277 commit 3b2313f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/stats/base/dists/gumbel/logpdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ for ( i = 0; i < 10; i++ ) {
160160

161161
#### stdlib_base_dists_gumbel_logcdf( x, mu, beta )
162162

163-
Evaluates the logarithm of the probability density function (PDF) for a Gumbel distribution
163+
Evaluates the logarithm of the [probability density function][pdf] (PDF) for a [Gumbel][gumbel-distribution] distribution with parameters `mu` (location parameter) and `beta > 0` (scale parameter).```
164164

165165
```c
166166
double out = stdlib_base_dists_gumbel_logpdf( 0.0, 0.0, 2.0 );

lib/node_modules/@stdlib/stats/base/dists/gumbel/logpdf/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ static double benchmark( void ) {
102102
int i;
103103

104104
for ( i = 0; i < 100; i++ ) {
105-
x[ i ] = random_uniform( -100.0, 0.0);
105+
x[ i ] = random_uniform( -100.0, 0.0 );
106106
mu[ i ] = random_uniform( -50.0, 50.0 );
107-
beta[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, STDLIB_CONSTANT_FLOAT64_EPS + 20.0 );
107+
beta[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
108108
}
109109

110110
t = tic();

lib/node_modules/@stdlib/stats/base/dists/gumbel/logpdf/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
*
2828
* @param x input value
2929
* @param mu location parameter
30-
* @param beta sclae parameter
30+
* @param beta scale parameter
3131
* @return evaluated logarithm of PDF
3232
*
3333
* @example
34-
* double y = stdlib_base_gumbel_logpdf( 0.0, 0.0, 2.0 );
35-
* // returns ~-1.0
34+
* double y = stdlib_base_dists_gumbel_logpdf( 0.0, 0.0, 2.0 );
35+
* // returns ~-1.693
3636
*/
3737
double stdlib_base_dists_gumbel_logpdf( const double x, const double mu, const double beta ) {
3838
double z;

0 commit comments

Comments
 (0)