Skip to content

Commit c84342a

Browse files
committed
fix: examples updated
1 parent e868c07 commit c84342a

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,10 @@ The method accepts the following options:
234234
var uniform = require( '@stdlib/random/uniform' );
235235
var getDType = require( '@stdlib/ndarray/dtype' );
236236
var ndarray2array = require( '@stdlib/ndarray/to-array' );
237-
var array = require( '@stdlib/ndarray/array' );
238237
var meanpw = require( '@stdlib/stats/meanpw' );
239238

240239
// Generate an array of random numbers:
241-
var x = array( uniform( 25, 0.0, 20.0 ), {
242-
'shape': [ 5, 5 ]
243-
});
240+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
244241
console.log( ndarray2array( x ) );
245242

246243
// Perform a reduction:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@
2121
var uniform = require( '@stdlib/random/uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24-
var array = require( '@stdlib/ndarray/array' );
2524
var meanpw = require( './../lib' );
2625

2726
// Generate an array of random numbers:
28-
var x = array( uniform( 25, 0.0, 20.0 ), {
29-
'shape': [ 5, 5 ]
30-
});
27+
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
3128
console.log( ndarray2array( x ) );
3229

3330
// Perform a reduction:

0 commit comments

Comments
 (0)