Skip to content

Commit

Permalink
refactor: update bench file
Browse files Browse the repository at this point in the history
  • Loading branch information
Neerajpathak07 committed Feb 3, 2025
1 parent 2c59a00 commit 5423b58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var dsnanmeanwd = require( './../lib/dsnanmeanwd.js' );
* @returns {number} random number
*/
function rand() {
if ( bernoulli( 0.5 < 1 ) ) {
if ( bernoulli( 0.8 ) < 1 ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var opts = {
* @returns {number} random number
*/
function rand() {
if ( bernoulli( 0.5 < 1 ) ) {
if ( bernoulli( 0.8 ) < 1 ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var dsnanmeanwd = require( './../lib/ndarray.js' );
* @returns {number} random number
*/
function rand() {
if ( bernoulli( 0.5 < 1 ) ) {
if ( bernoulli( 0.8 ) < 1 ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var opts = {
* @returns {number} random number
*/
function rand() {
if ( bernoulli( 0.5 < 1 ) ) {
if ( bernoulli( 0.8 ) < 1 ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down

0 comments on commit 5423b58

Please sign in to comment.