diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-02 14:13:13 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-02 14:21:21 +1200 |
commit | 3909483124a95893429c437336d9812596591c79 (patch) | |
tree | 85e18c0eb60e2ade16f59a50f4b059f2d26cadcc /man/man1/med.1df | |
parent | Add an issue with the Mutt configuration (diff) | |
download | dotfiles-3909483124a95893429c437336d9812596591c79.tar.gz dotfiles-3909483124a95893429c437336d9812596591c79.zip |
Add mean(1df), med(1df), and mode(1df)
Diffstat (limited to 'man/man1/med.1df')
-rw-r--r-- | man/man1/med.1df | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/man/man1/med.1df b/man/man1/med.1df new file mode 100644 index 00000000..0fab7db2 --- /dev/null +++ b/man/man1/med.1df @@ -0,0 +1,21 @@ +.TH MED 1df "September 2016" "Manual page for med" +.SH NAME +.B med +\- print the med of a list of integers +.SH SYNOPSIS +printf '%u\\n' 14 2 10 | +.B med +.br +.B med +file +.br +.B med +file1 file2 +.SH DESCRIPTION +.B med +collects all the newline-delimited integers given as input, and prints the +median. It uses the floor of the mean of the two median values if the number of +records is even. The input must be sorted, and a warning will be issued if it +isn't. +.SH AUTHOR +Tom Ryder <tom@sanctum.geek.nz> |