ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/histo.1
Revision: 1.2
Committed: Tue Dec 9 15:59:06 2003 UTC (20 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.1: +1 -1 lines
Log Message:
Fixed RCSid specification

File Contents

# User Rev Content
1 greg 1.2 .\" RCSid "$Id$"
2 greg 1.1 .TH HISTO 1 9/6/96 RADIANCE
3     .SH NAME
4     histo - compute 1-dimensional histogram of N data columns
5     .SH SYNOPSIS
6     .B "histo [-c] xmin xmax nbins"
7     .br
8     .B "histo [-c] imin imax"
9     .SH DESCRIPTION
10     .I Histo
11     bins columnular data on the standard input between the given minimum
12     and maximum values.
13     If three command line arguments are given, the third is taken as the
14     number of data bins between the first two real numbers.
15     If only two arguments are given, they are both assumed to be integers,
16     and the number of data bins will be equal to their difference plus one.
17     The bins are always of equal size.
18     .PP
19     The output is N+1 columns of data (for N columns input), where the
20     first column is the centroid of each division, and each row
21     corresponds to the frequencies for each column around that value.
22     .PP
23     If the
24     .I \-c
25     option is present, then
26     .I histo
27     computes the cumulative histogram for each column instead of the
28     straight frequencies.
29     The upper value of each bin is printed also instead of the centroid.
30     This may be useful in computing percentiles, for example.
31     .PP
32     All input data is interpreted as real values, and columns must be
33     white-space separated.
34     If any value is less than the minimum or greater than the maximum,
35     it will be ignored on the input.
36     (I.e., it will not contribute to any frequency count.)
37     .SH EXAMPLE
38     To count data values between -1 and 1 in 50 bins:
39     .IP "" .2i
40     histo -1 1 50 < input.dat
41     .PP
42     To count frequencies of integers between 0 and 255:
43     .IP "" .2i
44     histo 0 255 < input.dat
45     .SH AUTHOR
46     Greg Ward
47     .SH "SEE ALSO"
48     cnt(1), lam(1), neat(1), rcalc(1), tabfunc(1), total(1)