distcheck — the distribution check
distcheck applies the rule of Distributions as a test tool to a TSV: per group of comparable
items the median is the norm, and every item 5× from it in either direction is printed as worth a look, 10× as suspect,
20× as a bug. A zero beside a positive norm and a positive value beside a zero norm are bugs; zero beside zero is at
the norm. A group with fewer items than --min-n (default 5) gets quantiles but no norm.
Run
cargo build --release -p distcheck
target/release/distcheck [--item N] [--value N] [--group N] [--per N] [--scale X] [--header] [--min-n 5] \
[--control] [--fail-at look|suspect|bug] FILE|-
Columns are 1-based: item 1 and value 2 by default, no group (one group all). --per N divides the value by a size
column, --scale 1000 turns it into «per 1,000». Blank lines and lines starting with # are skipped; rows whose value
or size is not a finite number (or a size ≤ 0) are listed as unreadable, the first 20 with their line numbers.
The report gives per group its size, norm, p10, p25, p50, p75, p90 and max, the counts per level, and every flagged item, farthest first.
--control is the negative control: it adds one item <control> 25× the norm to every group with a norm and exits 1
unless each lands in the report as a bug. --fail-at exits 1 when a real item reaches the level. Usage and read errors
exit 2.
Limits
No histogram shape test (the unimodality check the doc suggests after a transform). The caller chooses what is comparable through the group column; a wrong grouping hides or invents outliers. A flag is a place to look, not a diagnosis.
This page in Markdown https://md.mova.elamur.ai/free/en/docs/tools/distcheck/