Skip to main content

Module stat_tui

Module stat_tui 

Source
Expand description

Full-screen explorer for per-row and per-column statistics.

A table of every row (or column) with its nnz, sum, mean, and sd, sortable and filterable by name, beside a histogram of the chosen statistic. A name filter draws its subset in front of the whole distribution, and the selected entry is marked on the histogram with its rank.

Entries can be marked: v shows the marked entries’ values against the other side, w saves the marked names, and when picking (for subset-* and rows/columns) Enter hands the marked entries back. While exploring, Tab switches between rows and columns, computing the other side the first time.

Structs§

Dataset
One side’s entries: names, and nnz/sum/mean/sd per entry.
Picked
Entries marked when picking, by side, in original order (empty when a side has none marked).
StatExplorer
State of the explorer, independent of the terminal so it can be tested.
Values
The values of some entries of one side against every entry of the other.

Enums§

Purpose
What the explorer is for.
Side
Which margin the explorer shows.

Functions§

explore
Run the explorer full screen until the user quits. When picking, returns the marked entries if the user finished with Enter.

Type Aliases§

Loader
Computes a side’s statistics the first time it is shown.
ValuesReader
Reads the values of the given entries of a side.