compare
Compare two tables of numbers cell by cell: relative error (measured - reference)/|reference|, the worst cell, whether all are within a tolerance. Tables are objects of rows, usually other runs' readings ("@r0012:critical"). Only rows and numeric columns present in both are compared.
- Field
- Measurement and data
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 1 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001102 against 100 is +2 %, within 2.5 %passed
max_abs_error_pct2 ± 2e-122lockedunder 0.01 % of the tolerance usedall_within= truetruelockedexact matchcompared= 11lockedexact matchr000297 against 100 is -3 %, outside 2.5 %; rows or columns in one table only are skippedpassed
max_abs_error_pct3 ± 3e-123lockedunder 0.01 % of the tolerance usedall_within= falsefalselockedexact matchcompared= 11lockedexact match
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
reference | The table to check against. | ||
measured | The table being checked. | ||
columns | Compare only these columns (default: every numeric column in both). | ||
tolerance_rel | 1 | 0.025 |
Readings
| Name | Unit | Meaning |
|---|---|---|
cells | ||
compared | 1 | |
max_abs_error_pct | % | |
worst | ||
all_within |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.