Skip to content

Commit cce9739

Browse files
authored
bench: update condition
Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 2fbaaf5 commit cce9739

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/node_modules/@stdlib/stats/strided/dnancumax/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ var Float64Array = require( '@stdlib/array/float64' );
150150
var dnancumax = require( '@stdlib/stats/strided/dnancumax' );
151151

152152
function rand() {
153-
if ( bernoulli( 0.2 ) < 1 ) {
153+
if ( bernoulli( 0.8 ) < 1 ) {
154154
return NaN;
155155
}
156156
return uniform( -50.0, 50.0 );

lib/node_modules/@stdlib/stats/strided/dnancumax/benchmark/c/benchmark.length.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void fill_arrays( int len, double *x, double *y ) {
9898
int i;
9999

100100
for ( i = 0; i < len; i++ ) {
101-
if ( rand_double() < 0.8 ) {
101+
if ( rand_double() < 0.2 ) {
102102
x[ i ] = 0.0 / 0.0; // NaN
103103
} else {
104104
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;

lib/node_modules/@stdlib/stats/strided/dnancumax/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var Float64Array = require( '@stdlib/array/float64' );
2525
var dnancumax = require( './../lib' );
2626

2727
function rand() {
28-
if ( bernoulli( 0.2 ) < 1 ) {
28+
if ( bernoulli( 0.8 ) < 1 ) {
2929
return NaN;
3030
}
3131
return uniform( -50.0, 50.0 );

0 commit comments

Comments
 (0)