Expand description
Pillar: III. PACR field: Γ.
Pluggable bootstrap backend abstraction for ε-machine confidence intervals.
§Design
BootstrapBackend is a zero-cost trait that decouples the CSSR inference
pipeline from the specific resampling engine. Today only CpuBootstrap
is active. On genesis_node (M1 Ultra) a [MetalBootstrap] stub compiles
in; the stub delegates to CpuBootstrap until the Metal compute pipeline
is implemented in ets-probe-ffi.
§Contract
resample_and_estimate(data, b) returns a Vec<f64> of length 2 × b
laid out as [c_0, h_0, c_1, h_1, …, c_{b-1}, h_{b-1}] where c_i is
the C_μ estimate and h_i is the h_μ estimate for bootstrap replicate i.
This flat layout avoids heap-allocating b tuples and maps naturally to
SIMD-friendly memory access patterns for future Metal kernels.
Structs§
- CpuBootstrap
- CPU-based parametric bootstrap (the existing B=200 implementation).
Traits§
- Bootstrap
Backend - Pluggable backend for parametric bootstrap resampling of ε-machine metrics.