Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/node_modules/@stdlib/stats/range/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,10 @@ The method accepts the following options:
```javascript
var uniform = require( '@stdlib/random/uniform' );
var getDType = require( '@stdlib/ndarray/dtype' );
var ndarray2array = require( '@stdlib/ndarray/to-array' );
var range = require( '@stdlib/stats/range' );

// Generate an array of random numbers:
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
console.log( ndarray2array( x ) );

// Perform a reduction:
var y = range( x, {
Expand All @@ -205,9 +203,7 @@ var y = range( x, {
// Resolve the output array data type:
var dt = getDType( y );
console.log( dt );

// Print the results:
console.log( ndarray2array( y ) );
// => 'float64'
```

</section>
Expand Down