Skip to content

Commit af61da9

Browse files
chore: changes from code review
1 parent 22e4853 commit af61da9

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Computes the arithmetic mean of a single-precision floating-point strided array,
195195
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 };
196196

197197
double v = stdlib_strided_dsnanmeanors( 6, x, 2 );
198-
// returns 4.6667
198+
// returns ~4.6667
199199
```
200200
201201
The function accepts the following arguments:
@@ -216,7 +216,7 @@ Computes the arithmetic mean of a single-precision floating-point strided array,
216216
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 };
217217

218218
double v = stdlib_strided_dsnanmeanors_ndarray( 6, x, 2, 0 );
219-
// returns 4.6667
219+
// returns ~4.6667
220220
```
221221
222222
The function accepts the following arguments:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ var dsnanmeanors = require( './../lib/dsnanmeanors.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/dsnanmeanors/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/dsnanmeanors/benchmark/benchmark.ndarray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ var dsnanmeanors = 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/dsnanmeanors/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)