Skip to main content

BootstrapBackend

Trait BootstrapBackend 

Source
pub trait BootstrapBackend {
    // Required method
    fn resample_and_estimate(&self, data: &[u8], b: usize) -> Vec<f64>;
}
Expand description

Pluggable backend for parametric bootstrap resampling of ε-machine metrics.

Implementors must be stateless (or internally synchronised) so that resample_and_estimate can be called from multiple async tasks.

Required Methods§

Source

fn resample_and_estimate(&self, data: &[u8], b: usize) -> Vec<f64>

Run b bootstrap replicates on data and return interleaved [c_0, h_0, c_1, h_1, …] estimates (length = 2 × b).

The caller is responsible for extracting percentiles from the returned vector.

Implementors§