Skip to content

Commit 950fd17

Browse files
fix: lint error
1 parent c61bddc commit 950fd17

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

lib/node_modules/@stdlib/stats/base/dists/betaprime/pdf/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,24 +230,24 @@ element and another before the `/section` close. -->
230230
#include <stdio.h>
231231
232232
static double random_uniform( const double min, const double max ) {
233-
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
234-
return min + ( v*(max-min) );
233+
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
234+
return min + ( v*(max-min) );
235235
}
236236
237237
int main( void ) {
238-
double alpha;
239-
double beta;
240-
double x;
241-
double y;
242-
int i;
243-
244-
for ( i = 0; i < 10; i++ ) {
245-
x = random_uniform( 0.0, 1.0 );
246-
alpha = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
247-
beta = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
248-
y = stdlib_base_dists_betaprime_pdf( x, alpha, beta );
249-
printf( "x: %1f, α: %1f, β: %1f, f(x;α,β): %lf\n", x, alpha, beta, y );
250-
}
238+
double alpha;
239+
double beta;
240+
double x;
241+
double y;
242+
int i;
243+
244+
for ( i = 0; i < 10; i++ ) {
245+
x = random_uniform( 0.0, 1.0 );
246+
alpha = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
247+
beta = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
248+
y = stdlib_base_dists_betaprime_pdf( x, alpha, beta );
249+
printf( "x: %1f, α: %1f, β: %1f, f(x;α,β): %lf\n", x, alpha, beta, y );
250+
}
251251
}
252252
```
253253

lib/node_modules/@stdlib/stats/base/dists/betaprime/pdf/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ static double tic( void ) {
8383
* @return random number
8484
*/
8585
static double random_uniform( const double min, const double max ) {
86-
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
87-
return min + ( v*(max-min) );
86+
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
87+
return min + ( v*(max-min) );
8888
}
8989

9090
/**

lib/node_modules/@stdlib/stats/base/dists/betaprime/pdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "stdlib/math/base/assert/is_nan.h"
2222
#include "stdlib/math/base/special/exp.h"
2323

24-
/*
24+
/*
2525
* Evaluates the probability density function (PDF) for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
2626
*
2727
* @param x input value

0 commit comments

Comments
 (0)