| 1 | greg | 1.3 | .\" RCSid "$Id: gcomp.1,v 1.2 2003/12/09 15:59:06 greg Exp $" | 
| 2 | greg | 1.1 | .TH GCOMP 1 6/24/98 RADIANCE | 
| 3 |  |  | .SH NAME | 
| 4 |  |  | gcomp - do computations on a graph file. | 
| 5 |  |  | .SH SYNOPSIS | 
| 6 |  |  | .B gcomp | 
| 7 |  |  | [ | 
| 8 |  |  | .B -amilh | 
| 9 |  |  | ][ | 
| 10 |  |  | .B +variable value .. | 
| 11 |  |  | ][ | 
| 12 |  |  | .B file .. | 
| 13 |  |  | ] | 
| 14 |  |  | .SH DESCRIPTION | 
| 15 |  |  | .I Gcomp | 
| 16 |  |  | reads each graph | 
| 17 |  |  | .I file | 
| 18 |  |  | in sequence and computes the specified calculations. | 
| 19 |  |  | The type options are as follows: | 
| 20 |  |  | .TP 10n | 
| 21 |  |  | .BR \-n | 
| 22 |  |  | Print the name of each curve. | 
| 23 |  |  | .TP | 
| 24 |  |  | .BR \-a | 
| 25 |  |  | Print average and standard deviation of each curve. | 
| 26 |  |  | .TP | 
| 27 |  |  | .BR \-m | 
| 28 |  |  | Print minimum and maximum for each curve. | 
| 29 |  |  | .TP | 
| 30 |  |  | .BR \-i | 
| 31 |  |  | Print Romberg's approximation to the integral of each curve. | 
| 32 |  |  | .TP | 
| 33 |  |  | .BR \-l | 
| 34 |  |  | Print the slope, intercept, and correlation coefficient using | 
| 35 |  |  | the least squares method of linear regression. | 
| 36 |  |  | .TP | 
| 37 |  |  | .BR \-h | 
| 38 |  |  | Do not print a header in the output. | 
| 39 |  |  | .PP | 
| 40 |  |  | The calculations will be displayed as columns in the order | 
| 41 |  |  | they are specified on the command line. | 
| 42 |  |  | If no files are given, the standard input is read. | 
| 43 |  |  | .PP | 
| 44 |  |  | Variables can be set explicitly with | 
| 45 |  |  | .I +variable value | 
| 46 |  |  | options. | 
| 47 |  |  | The only truely useful variables for this program | 
| 48 |  |  | are xmin and xmax. | 
| 49 |  |  | They determine boundaries for the calculations. | 
| 50 |  |  | .SH EXAMPLE | 
| 51 |  |  | To compute the approximate integral of sin(x)/log(x) from 2 to 4: | 
| 52 |  |  | .nf | 
| 53 |  |  | gcomp -i | 
| 54 |  |  | A(x)=sin(x)/log(x); | 
| 55 |  |  | Anpoints=100; | 
| 56 |  |  | xmin=2; | 
| 57 |  |  | xmax=4; | 
| 58 |  |  | ^D | 
| 59 |  |  | .fi | 
| 60 |  |  | .SH AUTHOR | 
| 61 |  |  | Greg Ward | 
| 62 |  |  | .SH BUGS | 
| 63 |  |  | Only the y values can be used for computation. | 
| 64 |  |  | .SH "SEE ALSO" | 
| 65 | greg | 1.3 | bgraph(1), dgraph(1), icalc(1), igraph(1) |