Skip to content

Commit 2c59a00

Browse files
chore: changes from code review
1 parent 04cf7a0 commit 2c59a00

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

lib/node_modules/@stdlib/stats/base/dsnanmeanwd/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_dsnanmeanwd( 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_dsnanmeanwd_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/dsnanmeanwd/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ var dsnanmeanwd = require( './../lib/dsnanmeanwd.js' );
3333
// FUNCTIONS //
3434

3535
/**
36-
* Returns a random value or `NaN`.
36+
* Returns a random number.
3737
*
3838
* @private
39-
* @returns {number} random number or `NaN`
39+
* @returns {number} random number
4040
*/
4141
function rand() {
42-
if ( bernoulli( 0.8 < 1 ) ) {
42+
if ( bernoulli( 0.5 < 1 ) ) {
4343
return NaN;
4444
}
4545
return uniform( -10.0, 10.0 );

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ var opts = {
4242
// FUNCTIONS //
4343

4444
/**
45-
* Returns a random value or `NaN`.
45+
* Returns a random number.
4646
*
4747
* @private
48-
* @returns {number} random number or `NaN`
48+
* @returns {number} random number
4949
*/
5050
function rand() {
51-
if ( bernoulli( 0.8 < 1 ) ) {
51+
if ( bernoulli( 0.5 < 1 ) ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ var dsnanmeanwd = require( './../lib/ndarray.js' );
3333
// FUNCTIONS //
3434

3535
/**
36-
* Returns a random value or `NaN`.
36+
* Returns a random number.
3737
*
3838
* @private
39-
* @returns {number} random number or `NaN`
39+
* @returns {number} random number
4040
*/
4141
function rand() {
42-
if ( bernoulli( 0.8 < 1 ) ) {
42+
if ( bernoulli( 0.5 < 1 ) ) {
4343
return NaN;
4444
}
4545
return uniform( -10.0, 10.0 );

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ var opts = {
4242
// FUNCTIONS //
4343

4444
/**
45-
* Returns a random value or `NaN`.
45+
* Returns a random number.
4646
*
4747
* @private
48-
* @returns {number} random number or `NaN`
48+
* @returns {number} random number
4949
*/
5050
function rand() {
51-
if ( bernoulli( 0.8 < 1 ) ) {
51+
if ( bernoulli( 0.5 < 1 ) ) {
5252
return NaN;
5353
}
5454
return uniform( -10.0, 10.0 );

0 commit comments

Comments
 (0)