diff --git a/lib/node_modules/@stdlib/stats/mean/README.md b/lib/node_modules/@stdlib/stats/mean/README.md index 00e71273ff2b..1d77b8ea5e09 100644 --- a/lib/node_modules/@stdlib/stats/mean/README.md +++ b/lib/node_modules/@stdlib/stats/mean/README.md @@ -230,19 +230,13 @@ The method accepts the following options: ```javascript -var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var uniform = require( '@stdlib/random/uniform' ); var getDType = require( '@stdlib/ndarray/dtype' ); var ndarray2array = require( '@stdlib/ndarray/to-array' ); -var ndarray = require( '@stdlib/ndarray/ctor' ); var mean = require( '@stdlib/stats/mean' ); // Generate an array of random numbers: -var xbuf = discreteUniform( 25, 0, 20, { - 'dtype': 'generic' -}); - -// Wrap in an ndarray: -var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' ); +var x = uniform( [ 5, 5 ], 0.0, 20.0 ); console.log( ndarray2array( x ) ); // Perform a reduction: diff --git a/lib/node_modules/@stdlib/stats/mean/examples/index.js b/lib/node_modules/@stdlib/stats/mean/examples/index.js index 6470cba7ad4a..4e3738dac89e 100644 --- a/lib/node_modules/@stdlib/stats/mean/examples/index.js +++ b/lib/node_modules/@stdlib/stats/mean/examples/index.js @@ -18,19 +18,13 @@ 'use strict'; -var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var uniform = require( '@stdlib/random/uniform' ); var getDType = require( '@stdlib/ndarray/dtype' ); var ndarray2array = require( '@stdlib/ndarray/to-array' ); -var ndarray = require( '@stdlib/ndarray/ctor' ); var mean = require( './../lib' ); // Generate an array of random numbers: -var xbuf = discreteUniform( 25, 0, 20, { - 'dtype': 'generic' -}); - -// Wrap in an ndarray: -var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' ); +var x = uniform( [ 5, 5 ], 0.0, 20.0 ); console.log( ndarray2array( x ) ); // Perform a reduction: