forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
31 lines (24 loc) · 675 Bytes
/
repl.txt
File metadata and controls
31 lines (24 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{alias}}( arrays )
Computes the mid-range of a one-dimensional ndarray.
If provided an empty ndarray, the function returns `NaN`.
Parameters
----------
arrays: ArrayLikeObject<ndarray>
Array-like object containing a one-dimensional input ndarray.
Returns
-------
out: number
Mid-range.
Examples
--------
> var xbuf = [ 1.0, -2.0, 2.0, 4.0 ];
> var dt = 'generic';
> var sh = [ xbuf.length ];
> var sx = [ 1 ];
> var ox = 0;
> var ord = 'row-major';
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, ord );
> {{alias}}( [ x ] )
1.0
See Also
--------