diff options
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/mean.1df | 19 | ||||
-rw-r--r-- | man/man1/med.1df | 21 | ||||
-rw-r--r-- | man/man1/mode.1df | 20 |
3 files changed, 60 insertions, 0 deletions
diff --git a/man/man1/mean.1df b/man/man1/mean.1df new file mode 100644 index 00000000..21f509f2 --- /dev/null +++ b/man/man1/mean.1df @@ -0,0 +1,19 @@ +.TH MEAN 1df "September 2016" "Manual page for mean" +.SH NAME +.B mean +\- print the mean of a list of integers +.SH SYNOPSIS +printf '%u\\n' 8 1 58 | +.B mean +.br +.B mean +file +.br +.B mean +file1 file2 +.SH DESCRIPTION +.B mean +collects all the newline-delimited integers given as input, and prints the +mean. +.SH AUTHOR +Tom Ryder <tom@sanctum.geek.nz> 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> 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> |