Skip to content

Commit 2e9b4ad

Browse files
committed
fix: changes done
1 parent 5f56441 commit 2e9b4ad

File tree

5 files changed

+14
-21
lines changed

5 files changed

+14
-21
lines changed

lib/node_modules/@stdlib/stats/meanpw/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,16 @@ The method accepts the following options:
231231
<!-- eslint no-undef: "error" -->
232232

233233
```javascript
234-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
234+
var uniform = require( '@stdlib/random/array/uniform' );
235235
var getDType = require( '@stdlib/ndarray/dtype' );
236236
var ndarray2array = require( '@stdlib/ndarray/to-array' );
237-
var ndarray = require( '@stdlib/ndarray/ctor' );
237+
var array = require( '@stdlib/ndarray/array' );
238238
var meanpw = require( '@stdlib/stats/meanpw' );
239239

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

249246
// Perform a reduction:

lib/node_modules/@stdlib/stats/meanpw/docs/repl.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( x[, options] )
3-
Computes the arithmetic mean along one or more ndarray dimensions
4-
using pairwise summation.
3+
Computes the arithmetic mean along one or more ndarray dimensions using
4+
pairwise summation.
55

66
Parameters
77
----------
@@ -38,9 +38,8 @@
3838

3939

4040
{{alias}}.assign( x, out[, options] )
41-
Computes the arithmetic mean along one or more ndarray dimensions,
42-
using pairwise summation, and assigns results to a provided
43-
output ndarray.
41+
Computes the arithmetic mean along one or more ndarray dimensions using
42+
pairwise summation and assigns results to a provided output ndarray.
4443

4544
Parameters
4645
----------

lib/node_modules/@stdlib/stats/meanpw/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ interface Unary {
8383
<T = unknown, U = unknown>( x: InputArray<T>, options?: Options ): OutputArray<U>; // NOTE: we lose type specificity here, but retaining specificity would likely be difficult and/or tedious to completely enumerate, as the output ndarray data type is dependent on how `x` interacts with output data type policy and whether that policy has been overridden by `options.dtype`.
8484

8585
/**
86-
* Computes the arithmetic mean along one or more ndarray dimensions, using pairwise summation, and assigns results to a provided output ndarray.
86+
* Computes the arithmetic mean along one or more ndarray dimensions using pairwise summation and assigns results to a provided output ndarray.
8787
*
8888
* @param x - input ndarray
8989
* @param out - output ndarray

lib/node_modules/@stdlib/stats/meanpw/examples/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,16 @@
1818

1919
'use strict';
2020

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

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

3633
// Perform a reduction:

lib/node_modules/@stdlib/stats/meanpw/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var table = {
5353
/**
5454
* Computes the arithmetic mean along one or more ndarray dimensions using pairwise summation.
5555
*
56-
* @name mean
56+
* @name meanpw
5757
* @type {Function}
5858
* @param {ndarray} x - input ndarray
5959
* @param {Options} [options] - function options

0 commit comments

Comments
 (0)