Skip to content

Commit aa94c73

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

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/node_modules/@stdlib/stats/base/dists/rayleigh/quantile/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var Float64Array = require( '@stdlib/array/float64' );
25-
var randu = require( '@stdlib/random/base/randu' );
25+
var uniform = require( '@stdlib/random/base/uniform' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
2828
var pkg = require( './../package.json' ).name;
@@ -42,8 +42,8 @@ bench( pkg, function benchmark( b ) {
4242
p = new Float64Array( len );
4343
sigma = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
p[ i ] = randu();
46-
sigma[ i ] = ( randu() * 20.0 ) + EPS;
45+
p[ i ] = uniform( 0.0, 1.0 );
46+
sigma[ i ] = uniform( EPS, 20.0 );
4747
}
4848

4949
b.tic();

lib/node_modules/@stdlib/stats/base/dists/rayleigh/quantile/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "stdlib/math/base/assert/is_nan.h"
2121
#include "stdlib/math/base/special/log1p.h"
2222
#include "stdlib/math/base/special/sqrt.h"
23+
2324
/**
2425
* Evaluates the quantile function for a Rayleigh distribution with scale parameter `sigma` at a probability `p`.
2526
*

0 commit comments

Comments
 (0)