aboutsummaryrefslogtreecommitdiff
path: root/man/man1/mode.1df
blob: 57782bef4ab35f9f3e0c40588acab5faa0193fef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.TH MODE 1df "September 2016" "Manual page for mode"
.SH NAME
.B mode
\- print the mode of a list of numbers
.SH SYNOPSIS
printf '%u\\n' 2 35 3 8 |
.B mode
.br
.B mode
file
.br
.B mode
file1 file2
.SH DESCRIPTION
.B mode
collects all the newline-delimited numbers given as input, and prints the
mode.  If two values have the same frequency (i.e. a multimodal distribution),
it will print one of them, but which one depends on whether your awk(1) sorts
array indexes...
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>