Fsdb::F...cumulate(3)

πŸ“¦
version 3.9 Β· 3 versions
, in epel 9

πŸ¦‹ 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, --column COLUMN β€” Accumulate values from the given COLUMN. No default. 🫢
  • -C, --constant K β€” Accumulate the given constant K for each row of input. No default. ✨
  • -I, --initial-value I β€” Start accumulation at value I. Defaults to zero. πŸŽ€
  • -N, --new-name N β€” Name the new column N. Defaults to accum. πŸ’–

This module also supports the standard fsdb options, bestie:

  • -d β€” Enable debugging output. πŸ›
  • -i, --input InputSource β€” Read from InputSource, typically a file name, or "-" for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. 🌟
  • -o, --output OutputDestination β€” Write to OutputDestination, typically a file name, or "-" for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. 🌈
  • --autorun, --noautorun β€” 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. πŸ‘‘
  • --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.

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