Skip to content

Commit b8814c6

Browse files
chore: minor changes in bench
1 parent dbe831f commit b8814c6

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

lib/node_modules/@stdlib/stats/base/dnanmeanors/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var dnanmeanors = require( './../lib/dnanmeanors.js' );
3939
* @returns {number} random number or `NaN`
4040
*/
4141
function rand() {
42-
if ( bernoulli( 0.2 ) ) {
42+
if ( bernoulli( 0.8 < 1 ) ) {
4343
return NaN;
4444
}
4545
return uniform( -10.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dnanmeanors/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var opts = {
4848
* @returns {number} random number or `NaN`
4949
*/
5050
function rand() {
51-
if ( bernoulli( 0.2 ) ) {
51+
if ( bernoulli( 0.8 < 1 ) ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dnanmeanors/benchmark/benchmark.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var dnanmeanors = require( './../lib/ndarray.js' );
3939
* @returns {number} random number or `NaN`
4040
*/
4141
function rand() {
42-
if ( bernoulli( 0.2 ) ) {
42+
if ( bernoulli( 0.8 < 1 ) ) {
4343
return NaN;
4444
}
4545
return uniform( -10.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dnanmeanors/benchmark/benchmark.ndarray.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var opts = {
4848
* @returns {number} random number or `NaN`
4949
*/
5050
function rand() {
51-
if ( bernoulli( 0.2 ) ) {
51+
if ( bernoulli( 0.8 < 1 ) ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dnanmeanors/src/addon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2020 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
2323
#include "stdlib/napi/argv_strided_float64array.h"
2424
#include "stdlib/napi/create_double.h"
2525
#include "stdlib/blas/base/shared.h"
26+
#include <node_api.h>
2627

2728
/**
2829
* Receives JavaScript callback invocation data.

0 commit comments

Comments
 (0)