Skip to content

Commit 884ef2d

Browse files
committed
Auto-generated commit
1 parent ef1ce69 commit 884ef2d

File tree

7 files changed

+15
-48
lines changed

7 files changed

+15
-48
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,6 +3510,9 @@ 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)_
3515+
- [`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)_
35133516
- [`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)_
35143517
- [`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)_
35153518
- [`72ee197`](https://github.com/stdlib-js/stdlib/commit/72ee197151024d68c6345fa094d6e05fa4c90bfd) - **docs:** fix incorrect \`@name\` tag in \`stats/nanmeanors\` _(by Philipp Burckhardt)_

max/README.md

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

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

218217
// Generate an array of random numbers:
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' );
218+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
225219
console.log( ndarray2array( x ) );
226220

227221
// Perform a reduction:

max/examples/index.js

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

1919
'use strict';
2020

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

2726
// Generate an array of random numbers:
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' );
27+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
3428
console.log( ndarray2array( x ) );
3529

3630
// Perform a reduction:

minabs/README.md

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

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

218217
// Generate an array of random numbers:
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' );
218+
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
225219
console.log( ndarray2array( x ) );
226220

227221
// Perform a reduction:

minabs/examples/index.js

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

1919
'use strict';
2020

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

2726
// Generate an array of random numbers:
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' );
27+
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
3428
console.log( ndarray2array( x ) );
3529

3630
// Perform a reduction:

range/README.md

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

219219
```javascript
220-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
220+
var uniform = require( '@stdlib/random/uniform' );
221221
var getDType = require( '@stdlib/ndarray/dtype' );
222222
var ndarray2array = require( '@stdlib/ndarray/to-array' );
223-
var ndarray = require( '@stdlib/ndarray/ctor' );
224223
var range = require( '@stdlib/stats/range' );
225224

226225
// Generate an array of random numbers:
227-
var xbuf = discreteUniform( 25, 0, 20, {
228-
'dtype': 'generic'
229-
});
230-
231-
// Wrap in an ndarray:
232-
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
226+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
233227
console.log( ndarray2array( x ) );
234228

235229
// Perform a reduction:

range/examples/index.js

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

1919
'use strict';
2020

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

2726
// Generate an array of random numbers:
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' );
27+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
3428
console.log( ndarray2array( x ) );
3529

3630
// Perform a reduction:

0 commit comments

Comments
 (0)