Skip to content

Commit f3e0bcb

Browse files
committed
Auto-generated commit
1 parent 6992dba commit f3e0bcb

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`2dd2d7e`](https://github.com/stdlib-js/stdlib/commit/2dd2d7ec8378f425d10122608707ca7591250641) - add `mskrange` to namespace
1314
- [`4e1eaac`](https://github.com/stdlib-js/stdlib/commit/4e1eaac6e4faf9b1b299ea6ebe6585ad136674e8) - add `stats/base/ndarray/mskrange` [(#8634)](https://github.com/stdlib-js/stdlib/pull/8634)
1415
- [`84b30fb`](https://github.com/stdlib-js/stdlib/commit/84b30fb2c4455b9cdc27d8010487631a4568c0cf) - add `snanmeanors`, `snanmeanpn`, `snanmeanwd` to namespace
1516
- [`320a026`](https://github.com/stdlib-js/stdlib/commit/320a026ee97a919f752a4d205a80d705b0e8c07b) - add `sminsorted`, `snanmaxabs`, `snanminabs` to namespace
@@ -3471,6 +3472,8 @@ A total of 557 issues were closed in this release:
34713472

34723473
<details>
34733474

3475+
- [`2dd2d7e`](https://github.com/stdlib-js/stdlib/commit/2dd2d7ec8378f425d10122608707ca7591250641) - **feat:** add `mskrange` to namespace _(by Athan Reines)_
3476+
- [`738dcba`](https://github.com/stdlib-js/stdlib/commit/738dcba7e5a28c232cb587b584c300597f9fd0eb) - **docs:** fix dtypes in examples _(by Athan Reines)_
34743477
- [`4e1eaac`](https://github.com/stdlib-js/stdlib/commit/4e1eaac6e4faf9b1b299ea6ebe6585ad136674e8) - **feat:** add `stats/base/ndarray/mskrange` [(#8634)](https://github.com/stdlib-js/stdlib/pull/8634) _(by Pratik, Athan Reines)_
34753478
- [`84b30fb`](https://github.com/stdlib-js/stdlib/commit/84b30fb2c4455b9cdc27d8010487631a4568c0cf) - **feat:** add `snanmeanors`, `snanmeanpn`, `snanmeanwd` to namespace _(by Athan Reines)_
34763479
- [`320a026`](https://github.com/stdlib-js/stdlib/commit/320a026ee97a919f752a4d205a80d705b0e8c07b) - **feat:** add `sminsorted`, `snanmaxabs`, `snanminabs` to namespace _(by Athan Reines)_

base/ndarray/lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,15 @@ setReadOnly( ns, 'mskmax', require( './../../../base/ndarray/mskmax' ) );
504504
*/
505505
setReadOnly( ns, 'mskmin', require( './../../../base/ndarray/mskmin' ) );
506506

507+
/**
508+
* @name mskrange
509+
* @memberof ns
510+
* @readonly
511+
* @type {Function}
512+
* @see {@link module:@stdlib/stats/base/ndarray/mskrange}
513+
*/
514+
setReadOnly( ns, 'mskrange', require( './../../../base/ndarray/mskrange' ) );
515+
507516
/**
508517
* @name nanmax
509518
* @memberof ns

base/ndarray/mskmax/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ var ndarray2array = require( '@stdlib/ndarray/to-array' );
8787
var mskmax = require( '@stdlib/stats/base/ndarray/mskmax' );
8888

8989
var xbuf = uniform( 10, -50.0, 50.0, {
90-
'dtype': 'float64'
90+
'dtype': 'generic'
9191
});
9292
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
9393
console.log( ndarray2array( x ) );
9494

9595
var maskbuf = bernoulli( xbuf.length, 0.2, {
9696
'dtype': 'uint8'
9797
});
98-
var mask = new ndarray( 'generic', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
98+
var mask = new ndarray( 'uint8', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
9999
console.log( ndarray2array( mask ) );
100100

101101
var v = mskmax( [ x, mask ] );

base/ndarray/mskmax/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ var ndarray2array = require( '@stdlib/ndarray/to-array' );
2525
var mskmax = require( './../lib' );
2626

2727
var xbuf = uniform( 10, -50.0, 50.0, {
28-
'dtype': 'float64'
28+
'dtype': 'generic'
2929
});
3030
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
3131
console.log( ndarray2array( x ) );
3232

3333
var maskbuf = bernoulli( xbuf.length, 0.2, {
3434
'dtype': 'uint8'
3535
});
36-
var mask = new ndarray( 'generic', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
36+
var mask = new ndarray( 'uint8', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
3737
console.log( ndarray2array( mask ) );
3838

3939
var v = mskmax( [ x, mask ] );

0 commit comments

Comments
 (0)