You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/meanors/README.md
+10-39Lines changed: 10 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,7 @@ var array = require( '@stdlib/ndarray/array' );
61
61
var x =array( [ 1.0, 2.0, -2.0, 4.0 ] );
62
62
63
63
var y =meanors( x );
64
-
// returns <ndarray>
65
-
66
-
var v =y.get();
67
-
// returns 1.25
64
+
// returns <ndarray>[ 1.25 ]
68
65
```
69
66
70
67
The function has the following parameters:
@@ -81,81 +78,58 @@ The function accepts the following options:
81
78
By default, the function performs a reduction over all elements in a provided input [ndarray][@stdlib/ndarray/ctor]. To perform a reduction over specific dimensions, provide a `dims` option.
82
79
83
80
```javascript
84
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
By default, the function excludes reduced dimensions from the output [ndarray][@stdlib/ndarray/ctor]. To include the reduced dimensions as singleton dimensions, set the `keepdims` option to `true`.
120
106
121
107
```javascript
122
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
By default, the function returns an [ndarray][@stdlib/ndarray/ctor] having a [data type][@stdlib/ndarray/dtypes] determined by the function's output data type [policy][@stdlib/ndarray/output-dtype-policies]. To override the default behavior, set the `dtype` option.
@@ -189,10 +163,7 @@ var x = array( [ 1.0, 2.0, -2.0, 4.0 ] );
0 commit comments