-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathrepl.txt
More file actions
30 lines (23 loc) · 653 Bytes
/
repl.txt
File metadata and controls
30 lines (23 loc) · 653 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 mode of a one-dimensional ndarray.
If provided an empty input ndarray, the function returns NaN.
Parameters
----------
arrays: ArrayLikeObject<ndarray>
Array-like object containing a one-dimensional input ndarray.
Returns
-------
out: number
Mode value.
Examples
--------
> var xbuf = [ 1.0, 2.0, 2.0, 3.0 ];
> var sh = [ xbuf.length ];
> var st = [ 1 ];
> var oo = 0;
> var ord = 'row-major';
> var x = new {{alias:@stdlib/ndarray/ctor}}( 'float64', xbuf, sh, st, oo, ord );
> {{alias}}( [ x ] )
2
See Also
--------