dbrowaccumulate - compute a running sum of a column
dbrowaccumulate [-C increment_constant] [-I initial_value] [-c increment_column] [-N new_column_name]
Compute a running sum over a column of data, or of a constant incremented per row, perhaps to generate a cumulative distribution.
What to accumulate is specified by -c or -C.
-c
-C
The new column is named by the -N argument, defaulting to accum.
-N
accum
Accumulate values from the given COLUMN. No default.
Accumulate the given constant K for each row of input. No default.
Start accumulation at value I. Defaults to zero.
Name the new column N. Defaults to accum.
This module also supports the standard fsdb options:
Enable debugging output.
Read from InputSource, typically a file name, or - for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
-
Write to OutputDestination, typically a file name, or - for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
By default, programs process automatically, but Fsdb::Filter objects in Perl do not run until you invoke the run() method. The --(no)autorun option controls that behavior within Perl.
--(no)autorun
Show help.
Show full manual.
#fsdb diff 0.0 00.000938 00.001611 00.001736 00.002006 00.002049 # | /home/johnh/BIN/DB/dbrow # | /home/johnh/BIN/DB/dbcol diff # | dbsort diff
cat DATA/kitrace.fsdb | dbrowaccumulate -c diff
#fsdb diff accum 0.0 0 00.000938 .000938 00.001611 .002549 00.001736 .004285 00.002006 .006291 00.002049 .00834 # | /home/johnh/BIN/DB/dbrow # | /home/johnh/BIN/DB/dbcol diff # | dbsort diff # | /home/johnh/BIN/DB/dbrowaccumulate diff
Fsdb, dbrowenumerate.
$filter = new Fsdb::Filter::dbrowaccumulate(@arguments);
Create a new dbrowaccumulate object, taking command-line arguments.
$filter->set_defaults();
Internal: set up defaults.
$filter->parse_options(@ARGV);
Internal: parse command-line arguments.
$filter->setup();
Internal: setup, parse headers.
$filter->run();
Internal: run over each rows.
Copyright (C) 1991-2022 by John Heidemann <johnh@isi.edu>
This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details.
To install Fsdb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fsdb
CPAN shell
perl -MCPAN -e shell install Fsdb
For more information on module installation, please visit the detailed CPAN module installation guide.