Booted
Booted is a fast, flexible Rust crate for bootstrapping estimators on arbitrary data structures.
It makes no assumptions about the shape or type of your data. Instead, it operates on data indices, allowing you to bootstrap scalars, vectors, or complex nested structures seamlessly. Powered by rayon, Booted automatically parallelizes the resampling and estimation process for high performance.
Features
- Agnostic to data shape: Bootstrap scalars, arrays, or custom structs.
- Multiple Sampling Strategies: Supports standard Simple (n-out-of-n), m-out-of-n, and Block bootstrapping.
- Bias Correction: Easily wrap estimators to perform double-bootstrap bias correction.
- Parallel by Default: Heavily leverages
rayonto compute samples across all available CPU cores. - Ergonomic API: Built using the
bonbuilder pattern for clean, readable configuration.
Quick Start
Here is a complete example of calculating the bootstrap mean, standard error, and 95% confidence interval for a simple 1D dataset:
use ;
use ;