Skip to main content

Module cutoff_tui

Module cutoff_tui 

Source
Expand description

Full-screen nnz cutoff picker for squeeze --interactive.

Shows the row and column nnz histograms with the current cutoff, and lets the user move each cutoff with the keyboard while the drop counts update live. Either histogram axis can be on a log, sqrt, or linear scale. On the log scale the bins are the printed histogram’s (qc), and drop counts always use the squeeze’s own rule, so all views agree.

Structs§

AxisView
One axis (rows or columns): the sorted nnz counts, their histogram, and the cutoff being edited.
CutoffPicker
State of the picker, independent of the terminal so it can be tested.

Functions§

choose_cutoffs
Run the picker full screen until the user proceeds (the row and column cutoffs) or cancels (None).