aboutsummaryrefslogtreecommitdiff
path: root/man/man1/mode.1df
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-02 14:13:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-02 14:21:21 +1200
commit3909483124a95893429c437336d9812596591c79 (patch)
tree85e18c0eb60e2ade16f59a50f4b059f2d26cadcc /man/man1/mode.1df
parentAdd an issue with the Mutt configuration (diff)
downloaddotfiles-3909483124a95893429c437336d9812596591c79.tar.gz
dotfiles-3909483124a95893429c437336d9812596591c79.zip
Add mean(1df), med(1df), and mode(1df)
Diffstat (limited to 'man/man1/mode.1df')
-rw-r--r--man/man1/mode.1df20
1 files changed, 20 insertions, 0 deletions
diff --git a/man/man1/mode.1df b/man/man1/mode.1df
new file mode 100644
index 00000000..d4727235
--- /dev/null
+++ b/man/man1/mode.1df
@@ -0,0 +1,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>