Skip to content

Commit 7ec6b38

Browse files
committed
chore: address commit comments for commit 2255c38 (issue #10849)
1 parent 499bdc0 commit 7ec6b38

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/stats

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ function createBenchmark( len ) {
8686
b.tic();
8787
for ( i = 0; i < b.iterations; i++ ) {
8888
v = dnanstdevch( [ x, correction ] );
89-
if ( typeof v !== 'number' ) {
90-
b.fail( 'should return a number' );
89+
if ( isnan( v ) ) {
90+
b.fail( 'should not return NaN' );
9191
}
9292
}
9393
b.toc();

lib/node_modules/@stdlib/stats/strided/snanmskminabs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The function has the following parameters:
6161
- **mask**: mask [`Uint8Array`][@stdlib/array/uint8]. If a `mask` array element is `0`, the corresponding element in `x` is considered valid and **included** in computation. If a `mask` array element is `1`, the corresponding element in `x` is considered invalid/missing and **excluded** from computation.
6262
- **strideMask**: stride length for `mask`.
6363

64-
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute the minimum absolute value of every other element in `x`,
64+
The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to compute the minimum absolute value of every other element in `x`,
6565

6666
```javascript
6767
var Float32Array = require( '@stdlib/array/float32' );

0 commit comments

Comments
 (0)