Skip to main content

Module bootstrap

Module bootstrap 

Source
Expand description

Deterministic bootstrap confidence intervals for gate statistics.

The gate protocol pins percentile bootstrap CIs at 95% over 1000 resamples (crate::protocol::GATE_BOOTSTRAP_RESAMPLES, crate::protocol::GATE_CI_LEVEL). Resampling is seeded and deterministic — a gate report must be reproducible from its recorded seed, so this module carries its own small generator instead of depending on an RNG crate. SplitMix64 is a fast counter-based generator, adequate for index resampling; it is not cryptographic and is never used for secrets.

Structs§

ConfidenceInterval
A percentile bootstrap confidence interval.
SplitMix64
SplitMix64 pseudo-random generator (deterministic, non-cryptographic).

Functions§

bootstrap_ci
Percentile bootstrap CI for statistic over values.