From 677d0e5fdc76620253af865ca03fd602c0419047 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 8 Sep 2016 22:49:28 +1200 Subject: Generalise mean,med,mode,tot(1df) to numbers Not just integers --- man/man1/mean.1df | 4 ++-- man/man1/med.1df | 4 ++-- man/man1/mode.1df | 4 ++-- man/man1/tot.1df | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'man') diff --git a/man/man1/mean.1df b/man/man1/mean.1df index 21f509f2..2fcc0f05 100644 --- a/man/man1/mean.1df +++ b/man/man1/mean.1df @@ -1,7 +1,7 @@ .TH MEAN 1df "September 2016" "Manual page for mean" .SH NAME .B mean -\- print the mean of a list of integers +\- print the mean of a list of numbers .SH SYNOPSIS printf '%u\\n' 8 1 58 | .B mean @@ -13,7 +13,7 @@ file file1 file2 .SH DESCRIPTION .B mean -collects all the newline-delimited integers given as input, and prints the +collects all the newline-delimited numbers given as input, and prints the mean. .SH AUTHOR Tom Ryder diff --git a/man/man1/med.1df b/man/man1/med.1df index 0fab7db2..70f8c131 100644 --- a/man/man1/med.1df +++ b/man/man1/med.1df @@ -1,7 +1,7 @@ .TH MED 1df "September 2016" "Manual page for med" .SH NAME .B med -\- print the med of a list of integers +\- print the med of a list of numbers .SH SYNOPSIS printf '%u\\n' 14 2 10 | .B med @@ -13,7 +13,7 @@ file file1 file2 .SH DESCRIPTION .B med -collects all the newline-delimited integers given as input, and prints the +collects all the newline-delimited numbers 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. diff --git a/man/man1/mode.1df b/man/man1/mode.1df index d4727235..a0a30047 100644 --- a/man/man1/mode.1df +++ b/man/man1/mode.1df @@ -1,7 +1,7 @@ .TH MODE 1df "September 2016" "Manual page for mode" .SH NAME .B mode -\- print the mode of a list of integers +\- print the mode of a list of numbers .SH SYNOPSIS printf '%u\\n' 2 35 3 8 | .B mode @@ -13,7 +13,7 @@ file file1 file2 .SH DESCRIPTION .B mode -collects all the newline-delimited integers given as input, and prints the +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 the one that reaches that frequency first in the data set. .SH AUTHOR diff --git a/man/man1/tot.1df b/man/man1/tot.1df index c098cbe1..ed2983a2 100644 --- a/man/man1/tot.1df +++ b/man/man1/tot.1df @@ -13,7 +13,7 @@ file file1 file2 .SH DESCRIPTION .B tot -adds up all the newline-delimited integers given as input, and prints the +adds up all the newline-delimited numbers given as input, and prints the total. .SH AUTHOR Tom Ryder -- cgit v1.2.3