Skip to content

Commit 39ea2b8

Browse files
committed
Auto-generated commit
1 parent 884ef2d commit 39ea2b8

File tree

6 files changed

+32
-17
lines changed

6 files changed

+32
-17
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,8 +3510,6 @@ A total of 557 issues were closed in this release:
35103510

35113511
<details>
35123512

3513-
- [`ac2791d`](https://github.com/stdlib-js/stdlib/commit/ac2791d4895a2932decb9f998a6b81057d2111b9) - **docs:** update examples in `stats/minabs` [(#8826)](https://github.com/stdlib-js/stdlib/pull/8826) _(by Sachin Pangal)_
3514-
- [`2cb9592`](https://github.com/stdlib-js/stdlib/commit/2cb9592c7057c1d5b1693343f01d740dd2e1d583) - **docs:** update examples in `stats/max` [(#8827)](https://github.com/stdlib-js/stdlib/pull/8827) _(by Sachin Pangal)_
35153513
- [`120e209`](https://github.com/stdlib-js/stdlib/commit/120e2092781bcc3db496f02c5882d7e0ec735e94) - **docs:** update examples in `stats/range` [(#8828)](https://github.com/stdlib-js/stdlib/pull/8828) _(by Sachin Pangal)_
35163514
- [`495d074`](https://github.com/stdlib-js/stdlib/commit/495d07427db5430c75747fb7317dd679fea217ad) - **docs:** update examples in `stats/cumax` [(#8829)](https://github.com/stdlib-js/stdlib/pull/8829) _(by Sachin Pangal)_
35173515
- [`2c42959`](https://github.com/stdlib-js/stdlib/commit/2c4295942380cc2becc363c431dce88f869d68ff) - **docs:** update examples in `stats/cumin` [(#8830)](https://github.com/stdlib-js/stdlib/pull/8830) _(by Sachin Pangal)_

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ For more information on the project, filing bug reports and feature requests, an
215215

216216
---
217217

218-
## License
219-
220-
See [LICENSE][stdlib-license].
221-
222-
223218
## Copyright
224219

225220
Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
@@ -266,8 +261,6 @@ Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
266261
[esm-readme]: https://github.com/stdlib-js/stats/blob/esm/README.md
267262
[branches-url]: https://github.com/stdlib-js/stats/blob/main/branches.md
268263

269-
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/stats/main/LICENSE
270-
271264
<!-- <toc-links> -->
272265

273266
[@stdlib/stats/cumax]: https://github.com/stdlib-js/stats/tree/main/cumax

max/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,19 @@ The method accepts the following options:
209209
<!-- eslint no-undef: "error" -->
210210

211211
```javascript
212-
var uniform = require( '@stdlib/random/uniform' );
212+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
213213
var getDType = require( '@stdlib/ndarray/dtype' );
214214
var ndarray2array = require( '@stdlib/ndarray/to-array' );
215+
var ndarray = require( '@stdlib/ndarray/ctor' );
215216
var max = require( '@stdlib/stats/max' );
216217

217218
// Generate an array of random numbers:
218-
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
219+
var xbuf = discreteUniform( 25, 0, 20, {
220+
'dtype': 'generic'
221+
});
222+
223+
// Wrap in an ndarray:
224+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
219225
console.log( ndarray2array( x ) );
220226

221227
// Perform a reduction:

max/examples/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818

1919
'use strict';
2020

21-
var uniform = require( '@stdlib/random/uniform' );
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var ndarray = require( '@stdlib/ndarray/ctor' );
2425
var max = require( './../lib' );
2526

2627
// Generate an array of random numbers:
27-
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
28+
var xbuf = discreteUniform( 25, 0, 20, {
29+
'dtype': 'generic'
30+
});
31+
32+
// Wrap in an ndarray:
33+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
2834
console.log( ndarray2array( x ) );
2935

3036
// Perform a reduction:

minabs/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,19 @@ The method accepts the following options:
209209
<!-- eslint no-undef: "error" -->
210210

211211
```javascript
212-
var uniform = require( '@stdlib/random/uniform' );
212+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
213213
var getDType = require( '@stdlib/ndarray/dtype' );
214214
var ndarray2array = require( '@stdlib/ndarray/to-array' );
215+
var ndarray = require( '@stdlib/ndarray/ctor' );
215216
var minabs = require( '@stdlib/stats/minabs' );
216217

217218
// Generate an array of random numbers:
218-
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
219+
var xbuf = discreteUniform( 25, -10, 10, {
220+
'dtype': 'generic'
221+
});
222+
223+
// Wrap in an ndarray:
224+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
219225
console.log( ndarray2array( x ) );
220226

221227
// Perform a reduction:

minabs/examples/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818

1919
'use strict';
2020

21-
var uniform = require( '@stdlib/random/uniform' );
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var ndarray = require( '@stdlib/ndarray/ctor' );
2425
var minabs = require( './../lib' );
2526

2627
// Generate an array of random numbers:
27-
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
28+
var xbuf = discreteUniform( 25, -10, 10, {
29+
'dtype': 'generic'
30+
});
31+
32+
// Wrap in an ndarray:
33+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
2834
console.log( ndarray2array( x ) );
2935

3036
// Perform a reduction:

0 commit comments

Comments
 (0)