Skip to content

Commit 5385ebf

Browse files
committed
probe: mark the (S - D) median when it is below its own resolution
Fifth instance of the defect class this PR keeps turning up — a number printed without the fact that the measurement cannot support it. Observed on the run that prompted this commit: the line printed `1.33 ns` against a noise floor of `1.57 ns`, i.e. a value indistinguishable from zero, as a bare figure, while every per-width figure on the screen above it already carries `~n` in exactly that situation. The line now carries the same `~noise` marker under the same condition (`med_gap.abs() < floor`). Worth stating as the general form, since one instance of this class was fixed three times in this PR before the class itself was named: finding a mislabelled statistic is not the same as finding the mislabelled statistics, and the cheap sweep — read every print against what its accumulator actually holds — is what catches the rest. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
1 parent 525f052 commit 5385ebf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎examples/mask_algebra_tail_probe.rs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,15 @@ mod imp {
532532
// defect class as the pooling bug one screen up (a label outrunning what
533533
// the code computes) and a reminder that finding one instance of that
534534
// is not the same as finding them all.
535+
// ...and mark it when it is below its own resolution, as every other
536+
// figure here is. Measured on the run that prompted this: 1.33 ns
537+
// against a 1.57 ns floor — a bare number there is the same defect one
538+
// more time, a value printed without the fact that it cannot be
539+
// distinguished from zero.
535540
println!(
536541
"median (S - D), pooled over all {REPEATS} passes and ALL widths (unfiltered): \
537-
{med_gap:.2} ns [noise floor {floor:.2} ns]"
542+
{med_gap:.2} ns{} [noise floor {floor:.2} ns]",
543+
if med_gap.abs() < floor { " ~noise" } else { "" }
538544
);
539545

540546
let lo = |v: &[f64]| {

0 commit comments

Comments
 (0)