Skip to content

Commit 1314e66

Browse files
committed
Auto-generated commit
1 parent e4d7173 commit 1314e66

File tree

10 files changed

+22
-66
lines changed

10 files changed

+22
-66
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,11 +3510,16 @@ A total of 557 issues were closed in this release:
35103510

35113511
<details>
35123512

3513+
- [`ed42a4f`](https://github.com/stdlib-js/stdlib/commit/ed42a4f20e80757e6e855dc9ac4e70ab5a28f423) - **docs:** update related packages sections [(#8835)](https://github.com/stdlib-js/stdlib/pull/8835) _(by stdlib-bot)_
3514+
- [`8be43b3`](https://github.com/stdlib-js/stdlib/commit/8be43b3489187f60926783d3936fb8003f2a8b9a) - **docs:** update examples in `stats/mean` [(#8823)](https://github.com/stdlib-js/stdlib/pull/8823) _(by Sachin Pangal)_
3515+
- [`48d0dcb`](https://github.com/stdlib-js/stdlib/commit/48d0dcbf02ab85d05d7b0904d5a7196435787c44) - **docs:** update examples in `stats/maxabs` [(#8824)](https://github.com/stdlib-js/stdlib/pull/8824) _(by Sachin Pangal)_
3516+
- [`8cf190a`](https://github.com/stdlib-js/stdlib/commit/8cf190af409092c48ce33af1f5c8067393f17656) - **docs:** update examples in `stats/min` [(#8825)](https://github.com/stdlib-js/stdlib/pull/8825) _(by Sachin Pangal)_
3517+
- [`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)_
35133518
- [`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)_
35143519
- [`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)_
35153520
- [`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)_
35163521
- [`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)_
3517-
- [`72ee197`](https://github.com/stdlib-js/stdlib/commit/72ee197151024d68c6345fa094d6e05fa4c90bfd) - **docs:** fix incorrect \`@name\` tag in \`stats/nanmeanors\` _(by Philipp Burckhardt)_
3522+
- [`72ee197`](https://github.com/stdlib-js/stdlib/commit/72ee197151024d68c6345fa094d6e05fa4c90bfd) - **docs:** fix incorrect `name` tag in `stats/nanmeanors` _(by Philipp Burckhardt)_
35183523
- [`d59bcf1`](https://github.com/stdlib-js/stdlib/commit/d59bcf10a72a422cbe767dc1dab9e903dabbd300) - **feat:** add `stats/meanors` [(#8793)](https://github.com/stdlib-js/stdlib/pull/8793) _(by Sachin Pangal, Athan Reines)_
35193524
- [`fdc9009`](https://github.com/stdlib-js/stdlib/commit/fdc900992fd753d7819880d61e7a6a9862202380) - **feat:** add `stats/nanmeanors` [(#8779)](https://github.com/stdlib-js/stdlib/pull/8779) _(by Pratik, Athan Reines)_
35203525
- [`0a95ffb`](https://github.com/stdlib-js/stdlib/commit/0a95ffb6202ca4eb7bd5f10f63eaf144b2646ea5) - **docs:** fix JSDoc name tag in `stats/nanmeanpn` _(by Philipp Burckhardt)_

incr/nanhmean/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ The [harmonic mean][harmonic-mean] of positive real numbers `x_0, x_1, ..., x_{n
3232
\begin{align}H &= \frac{n}{\frac{1}{x_0} + \frac{1}{x_1} + \cdots + \frac{1}{x_{n-1}}} \\ &= \frac{\displaystyle n}{\displaystyle\sum_{i=0}^{n-1} \frac{1}{x_i}} \\ &= \biggl( \frac{\displaystyle\sum_{i=0}^{n-1} \frac{1}{x_i}}{\displaystyle n} \biggr)^{-1}\end{align}
3333
```
3434

35-
3635
<!-- </equation> -->
3736

3837
</section>

maxabs/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 maxabs = require( '@stdlib/stats/maxabs' );
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:

maxabs/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 maxabs = 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:

mean/README.md

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

232232
```javascript
233-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
233+
var uniform = require( '@stdlib/random/uniform' );
234234
var getDType = require( '@stdlib/ndarray/dtype' );
235235
var ndarray2array = require( '@stdlib/ndarray/to-array' );
236-
var ndarray = require( '@stdlib/ndarray/ctor' );
237236
var mean = require( '@stdlib/stats/mean' );
238237

239238
// Generate an array of random numbers:
240-
var xbuf = discreteUniform( 25, 0, 20, {
241-
'dtype': 'generic'
242-
});
243-
244-
// Wrap in an ndarray:
245-
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
239+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
246240
console.log( ndarray2array( x ) );
247241

248242
// Perform a reduction:

mean/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 mean = 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:

min/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 min = require( '@stdlib/stats/min' );
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:

min/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 min = 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:

0 commit comments

Comments
 (0)