Skip to content

Commit 88b1544

Browse files
committed
refator: as per suggested
1 parent 7caac87 commit 88b1544

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ int main( void ) {
233233
int i;
234234
235235
for ( i = 0; i < 25; i++ ) {
236-
alpha = random_uniform( 0, 10 );
237-
beta = random_uniform( 0, 10 );
236+
alpha = random_uniform( 0.0, 10.0 );
237+
beta = random_uniform( 0.0, 10.0 );
238238
y = stdlib_base_dists_pareto_type1_stdev( alpha, beta );
239239
printf( "α: %lf, β: %lf, SD(X;α,β): %lf\n", alpha, beta, y );
240240
}

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/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, 10 );
104-
beta[ i ] = random_uniform( 0, 10 ) + 2.0;
103+
alpha[ i ] = random_uniform( 0.0, 10.0 );
104+
beta[ i ] = random_uniform( 0.0, 10.0 ) + 2.0;
105105
}
106106

107107
t = tic();

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/examples/c/example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ int main( void ) {
3232
int i;
3333

3434
for ( i = 0; i < 25; i++ ) {
35-
alpha = random_uniform( 0, 10 );
36-
beta = random_uniform( 0, 10 );
35+
alpha = random_uniform( 0.0, 10.0 );
36+
beta = random_uniform( 0.0, 10.0 );
3737
y = stdlib_base_dists_pareto_type1_stdev( alpha, beta );
3838
printf( "α: %lf, β: %lf, SD(X;α,β): %lf\n", alpha, beta, y );
3939
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ var addon = require( './../src/addon.node' );
2828
/**
2929
* Returns the standard deviation of a pareto (Type I) distribution.
3030
*
31+
* @private
3132
* @param {PositiveNumber} alpha - shape parameter
3233
* @param {PositiveNumber} beta - scale parameter
33-
* @returns {PositiveNumber} standard deviation
34+
* @returns {PositiveNumber} standard deviationgit
3435
*
3536
* @example
3637
* var v = stdev( 4.0, 12.0 );

0 commit comments

Comments
 (0)