By downloading this code you agree to the
Source Code Use License (PDF). |
{ version = 1.10; (* of diffintcut.p 2007 Nov 29}
(* begin module describe.diffintcut *)
(*
name
diffintcut: differences between integers with cutoff
synopsis
diffintcut(input: in, diffintcutp: in, output: out);
files
input: a set of integers, one per line.
Lines that begin with "*" are ignored - a comment line.
diffintcutp: parameters to control the program. The file must contain the
following parameters, one per line:
parameterversion: The version number of the program. This allows the
user to be warned if an old parameter file is used.
colummn: an integer that defines which column (space delimiter)
of the input file to use.
lower upper: Two integers on one line
These define the range of differences to report
width: an integer that defines the width of output numbers
output:
first column: the difference between each integer and the
previous one within (inclusive) the lower and upper.
second column: previous integer in the file
third column: current integer in the file
describe
Lines that begin with an asterisk ('*') are first copied to the
output. then the difference between each integer in input and the
previous one is given to the output.
Data often comes separated into chunks and the user may want to
control the chunks, so the program resets everytime there is a
comment line in the input file. That is, at the beginning of the
data the program cannot give a difference because there is no
previous value. So the program only starts reporting differences
for the second and later data items. If there is a comment, the
program starts over and does not report the difference with the
value before the comment line. If you do not want this behavior,
then use the Unix command:
`grep -v '*' file|diffintcut`.
The grep -v will remove all lines that have '* in them in the file.
documentation
see also
example parameter file: diffintcutp
Simpler (and probably faster) differences of integer program: diffint.p
author
Thomas Dana Schneider
bugs
technical notes
bugs
none known
*)
(* end module describe.diffintcut *)
{This manual page was created by makman 1.45}
{created by htmlink 1.62}