aboutsummaryrefslogtreecommitdiff
path: root/man/man1/mode.1df
blob: d472723592bcf87fc63c4dfcf6c75149b0c6a03c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.TH MODE 1df "September 2016" "Manual page for mode"
.SH NAME
.B mode
\- print the mode of a list of integers
.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 integers given as input, and prints the
mode. If two values have the same frequency (i.e. a multimodal distribution),
it will print the one that reaches that frequency first in the data set.
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>