ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/total.1
(Generate patch)

Comparing ray/doc/man/man1/total.1 (file contents):
Revision 1.2 by greg, Tue Dec 9 15:59:07 2003 UTC vs.
Revision 1.7 by greg, Tue Sep 4 17:36:41 2007 UTC

# Line 15 | Line 15 | total - sum up columns
15   |
16   .B \-l
17   ][
18 + .B \-i{f|d}[N]
19 + ][
20 + .B \-o{f|d}
21 + ][
22   .B \-tC
23   ][
24   .B \-N
# Line 64 | Line 68 | For products, the geometric mean is computed.
68   (A logarithmic sum of absolute values is used to avoid overflow, and
69   zero values are silently ignored.)
70   .PP
71 + If the input data is binary, the
72 + .I \-id
73 + or
74 + .I \-if
75 + option may be given for 64-bit double or 32-bit float values, respectively.
76 + Either option may be followed immediately by an optional
77 + count, which defaults to 1, indicating the number of double or float
78 + binary values to read per record on the input file.
79 + (There can be no space between the option and this count.)\0
80 + Similarly, the
81 + .I \-od
82 + and
83 + .I \-of
84 + options specify binary double or float output, respectively.
85 + These options do not need a count, as this will be determined by the
86 + number of input channels.
87 + .PP
88   A count can be given as the number of lines to read before
89   computing a result.
90 < By default,
90 > Normally,
91   .I total
92 < reads each file to its end before producing its result, but the
92 > reads each file to its end before producing its result,
93 > but this behavior may be overridden by inserting blank lines in
94 > the input.
95 > For each blank input line, total produces a result as if the
96 > end-of-file had been reached.
97 > If two blank lines immediately follow each other, total closes
98 > the file and proceeds to the next one (after reporting the result).
99 > The
100   .I \-N
101   option (where N is a decimal integer) tells
102   .I total
# Line 77 | Line 105 | every N input lines.
105   In addition, the
106   .I \-r
107   option can be specified to override reinitialization and thus
108 < give a running total every N lines.
108 > give a running total every N lines (or every blank line).
109   If the end of file is reached, the current total is printed
110   and the calculation is reset before the next file (with or without the
111   .I \-r
# Line 92 | Line 120 | If no files are given, the standard input is read.
120   .SH EXAMPLE
121   To compute the RMS value of colon-separated columns in a file:
122   .IP "" .2i
123 < total -t: -m -s2 input
123 > total \-t: \-m \-s2 input
124   .PP
125   To produce a running product of values from a file:
126   .IP "" .2i
127 < total -p -1 -r input
127 > total \-p \-1 \-r input
128   .SH BUGS
129   If the input files have varying numbers of columns, mean values
130   will certainly be off.
# Line 107 | Line 135 | the tab character is white.
135   .SH AUTHOR
136   Greg Ward
137   .SH "SEE ALSO"
138 < cnt(1), lam(1), neat(1), rcalc(1), tabfunc(1)
138 > cnt(1), neaten(1), rcalc(1), rlam(1), tabfunc(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines