Skip to content

Commit 0b4a158

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

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/variance/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ for ( i = 0; i < 10; i++ ) {
182182

183183
#### stdlib_base_dists_pareto_type1_variance( alpha, beta )
184184

185-
Returns the variance of a Pareto (Type I) distribution.
185+
Returns the [variance][variance] of a [Pareto (Type I)][pareto-distribution] distribution with parameters `alpha` (shape parameter) and `beta` (scale parameter).
186186

187187
```c
188188
double out = stdlib_base_dists_pareto_type1_variance( 4.0, 12.0 );
@@ -196,7 +196,6 @@ The function accepts the following arguments:
196196

197197
```c
198198
double stdlib_base_dists_pareto_type1_variance( const double alpha, const double beta );
199-
200199
```
201200
202201
</section>

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/variance/benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var tryRequire = require( '@stdlib/utils/try-require' );
2525
var Float64Array = require( '@stdlib/array/float64' );
2626
var bench = require( '@stdlib/bench' );
27-
var randu = require( '@stdlib/random/base/randu' );
27+
var uniform = require( '@stdlib/random/base/uniform' );
2828
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2929
var EPS = require( '@stdlib/constants/float64/eps' );
3030
var pkg = require( './../package.json' ).name;
@@ -51,8 +51,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
alpha = new Float64Array( len );
5252
beta = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
alpha[ i ] = ( randu() * 10.0 ) + EPS;
55-
beta[ i ] = ( randu() * 10.0 ) + EPS;
54+
alpha[ i ] = uniform( EPS, 10.0 );
55+
beta[ i ] = uniform( EPS, 10.0 );
5656
}
5757

5858
b.tic();

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/variance/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ static double benchmark( void ) {
100100
int i;
101101

102102
for ( i = 0; i < 100; i++ ) {
103-
alpha[ i ] = random_uniform( 0.0, 10.0 );
104-
beta[ i ] = random_uniform( 0.0, 10.0 );
103+
alpha[ i ] = random_uniform( 0.1, 10.0 );
104+
beta[ i ] = random_uniform( 0.1, 10.0 );
105105
}
106106

107107
t = tic();

0 commit comments

Comments
 (0)