Skip to content

Commit 1f649e9

Browse files
refactor: update bench file
1 parent 09320a0 commit 1f649e9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/stats/base/dsnanmeanpn/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Computes the arithmetic mean of a single-precision floating-point strided array
194194
const float x[] = { 1.0f, 2.0f, 0.0f/0.0f, 3.0f, 0.0f/0.0f, 4.0f, 5.0f, 6.0f, 0.0f/0.0f, 7.0f, 8.0f, 0.0f/0.0f };
195195

196196
double v = stdlib_strided_dsnanmeanpn( 6, x, 2 );
197-
// returns 4.6667
197+
// returns ~4.6667
198198
```
199199
200200
The function accepts the following arguments:
@@ -215,7 +215,7 @@ Computes the arithmetic mean of a single-precision floating-point strided array,
215215
const float x[] = { 1.0f, 2.0f, 0.0f/0.0f, 3.0f, 0.0f/0.0f, 4.0f, 5.0f, 6.0f, 0.0f/0.0f, 7.0f, 8.0f, 0.0f/0.0f };
216216

217217
double v = stdlib_strided_dsnanmeanpn_ndarray( 6, x, 2, 0 );
218-
// returns 4.6667
218+
// returns ~4.6667
219219
```
220220
221221
The function accepts the following arguments:

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

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

lib/node_modules/@stdlib/stats/base/dsnanmeanpn/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.8 < 1 ) ) {
51+
if ( bernoulli( 0.8 ) < 1 ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

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

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

lib/node_modules/@stdlib/stats/base/dsnanmeanpn/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.8 < 1 ) ) {
51+
if ( bernoulli( 0.8 ) < 1 ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

0 commit comments

Comments
 (0)