Skip to content

Commit e16a723

Browse files
chore: changes from code review
1 parent f46e7ee commit e16a723

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ Computes arithmetic mean of a double-precision floating-point strided array, ign
193193
const double x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 };
194194

195195
double v = stdlib_strided_dnanmeanpn( 6, x, 2 );
196-
// returns 4.6667
196+
// returns ~4.6667
197197
```
198198
199199
The function accepts the following arguments:
200200
201-
- **N**: `[in] CBLAS_INT` number of indexed elements.
202-
- **X**: `[in] double*` input array.
201+
- **N**: `[in] CBLAS_INT` number of indexed elements.
202+
- **X**: `[in] double*` input array.
203203
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
204204
205205
```c
@@ -214,13 +214,13 @@ Computes the aithmetic mean of a double-precision floating-point strided array,
214214
const double x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 };
215215

216216
double v = stdlib_strided_dnanmeanpn( 6, x, 2, 0 );
217-
// returns 4.6667
217+
// returns ~4.6667
218218
```
219219
220220
The function accepts the following arguments:
221221
222-
- **N**: `[in] CBLAS_INT` number of indexed elements.
223-
- **X**: `[in] double*` input array.
222+
- **N**: `[in] CBLAS_INT` number of indexed elements.
223+
- **X**: `[in] double*` input array.
224224
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
225225
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
226226

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

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

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