Skip to content

Commit bb01278

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/levy/variance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ int main( void ) {
210210
int i;
211211
212212
for ( i = 0; i < 25; i++ ) {
213-
mu = random_uniform( 0.0, 10.0 ) - 5.0;
213+
mu = random_uniform( -5.0, 5.0 );
214214
c = random_uniform( 0.0, 20.0 );
215215
y = stdlib_base_dists_levy_variance( mu, c );
216216
printf( "µ: %lf, c: %lf, Var(X;µ,c): %lf\n", mu, c, y );

lib/node_modules/@stdlib/stats/base/dists/levy/variance/benchmark/c/benchmark.c

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

103103
for ( i = 0; i < 100; i++ ) {
104-
mu[ i ] = random_uniform( 0.0, 100.0 ) - 50.0;
105-
c[ i ] = random_uniform( 0.0, 20.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
104+
mu[ i ] = random_uniform( -50.0, 50.0 );
105+
c[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
106106
}
107107

108108
t = tic();

lib/node_modules/@stdlib/stats/base/dists/levy/variance/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main( void ) {
3232
int i;
3333

3434
for ( i = 0; i < 25; i++ ) {
35-
mu = random_uniform( 0.0, 10.0 ) - 5.0;
35+
mu = random_uniform( -5.0, 5.0 );
3636
c = random_uniform( 0.0, 20.0 );
3737
y = stdlib_base_dists_levy_variance( mu, c );
3838
printf( "µ: %lf, c: %lf, Var(X;µ,c): %lf\n", mu, c, y );

0 commit comments

Comments
 (0)