Fsdb::F...cumulate(3)
π¦ Fsdb::F...cumulate(3) π¦
Okay bestie, this is the User Contributed Perl Documentation page for the manual name Fsdb::F...cumulate(3) β and the whole thing is about the command dbrowaccumulate. Slay. π
β¨ NAME β¨
dbrowaccumulate β compute a running sum of a column. No cap.
πΈ SYNOPSIS πΈ
dbrowaccumulate [-C increment_constant] [-I initial_value] [-c increment_column] [-N new_column_name]
π DESCRIPTION π
So this tool computes a running sum over a column of data, or it accumulates a constant incremented per row β maybe to generate a cumulative distribution. It's giving useful, honestly.
What to accumulate is specified by -c or -C, periodt.
The new column is named by the -N argument, and it defaults to accum. Cute.
π₯ OPTIONS π₯
-c,--columnCOLUMN β Accumulate values from the given COLUMN. No default. π«Ά-C,--constantK β Accumulate the given constant K for each row of input. No default. β¨-I,--initial-valueI β Start accumulation at value I. Defaults to zero. π-N,--new-nameN β Name the new column N. Defaults toaccum. π
This module also supports the standard fsdb options, bestie:
-dβ Enable debugging output. π-i,--inputInputSource β Read from InputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. π-o,--outputOutputDestination β Write to OutputDestination, typically a file name, or"-"for standard output, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. π--autorun,--noautorunβ By default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The--(no)autorunoption controls that behavior within Perl. π--helpβ Show help. π--manβ Show full manual. π
π SAMPLE USAGE π
Input:
#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
Command:
cat DATA/kitrace.fsdb | dbrowaccumulate -c diff
Output:
#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
π SEE ALSO π
Fsdb, dbrowenumerate. Go check those out too, iykyk. π
π CLASS FUNCTIONS π
π§ new
$filter = new Fsdb::Filter::dbrowaccumulate(@arguments);
Create a new dbrowaccumulate object, taking command-line arguments.
π§ set_defaults
$filter->set_defaults();
Internal: set up defaults.
π§ parse_options
$filter->parse_options(@ARGV);
Internal: parse command-line arguments.
π§ setup
$filter->setup();
Internal: setup, parse headers.
π§ run
$filter->run();
Internal: run over each rows.
π AUTHOR and COPYRIGHT π
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.
Okay bestie, that's the whole page β footer energy and all: perl v5.32.1, dated 2024-08-02, on the Fsdb::F...cumulate(3) page. Mwah. πβ¨
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms