Skip to content

Demo: multi-file histograms#279

Merged
rouson merged 23 commits into
mainfrom
multi-file-histograms
Oct 27, 2025
Merged

Demo: multi-file histograms#279
rouson merged 23 commits into
mainfrom
multi-file-histograms

Conversation

@rouson

@rouson rouson commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

No description provided.

rouson added 23 commits October 20, 2025 19:20
This commit prepares for calculating histograms from multiple
data files by making histogram_t objects summable.  For this
purpose, histogram_t componnets now include bin count and
cardinality.  This commit replaces the bin_frequency_ component
with a bin_frequency() function that calculates frequency by
dividing the count by the cardinality.
This commit further prepares for computing aggregate histograms
from multi-file data by adding a histrogram_t user-defined
structure constructor that accepts a predefined range.  Doing so
will allow for using global extrema to define one range across
all files.
Usage:

./build/run-fpm.sh run tensor-statistics -- --bins <integer> \
  [--disaggregate] [--unified] [--start <integer>] [--end <integer>] [--stride <integer>]

where angular brackets (<>) denote user-provided values, square brackets denote optional
arguments, and flags have the following meanings:

--bins         number of histogram bins in which to collect variable values
--disaggregate generates one histogram plot file per variable per training-data file
--end          last time step
--start        first time step
--stride       interval between time steps
--unified      maps all domains to [0,1] on one histogram plot per training-data file
Usage:

./build/run-fpm.sh run tensor-statistics -- --bins <integer> [[--disaggregate] | [--unified]]

where angular brackets (<>) denote user-provided values, square brackets ([]) denote optional
arguments, a pipe (|) separates exclusive alternatives, and flags have the following meanings:

--bins         number of histogram bins in which to collect variable values
--disaggregate generates one histogram plot file per variable per training-data file
--unified      maps all domains to [0,1] on one histogram plot per training-data file
This commit tests behavior of the histogram_t constructor when the
first actual argument is one or more bracketed arrays such as [v]
or [u,v,w], where u, v, and w are each a multidimensional array.
@rouson rouson marked this pull request as ready for review October 27, 2025 07:06
@rouson rouson merged commit a071568 into main Oct 27, 2025
4 checks passed
@rouson rouson deleted the multi-file-histograms branch October 27, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant