pub struct BootstrapConfig {
pub iterations: usize,
pub confidence_levels: Vec<f64>,
pub seed: Option<u64>,
pub data: Vec<f64>,
pub statistic: BootstrapStatistic,
pub percentile_value: f64,
}Expand description
Configuration for bootstrap resampling
Fields§
§iterations: usizeNumber of bootstrap iterations
confidence_levels: Vec<f64>Confidence levels for intervals (e.g., 0.90, 0.95, 0.99)
seed: Option<u64>Random seed for reproducibility
data: Vec<f64>Historical data to resample from
statistic: BootstrapStatisticStatistic to compute
percentile_value: f64Percentile value (if statistic is Percentile)
Implementations§
Source§impl BootstrapConfig
impl BootstrapConfig
Sourcepub const fn with_iterations(self, iterations: usize) -> Self
pub const fn with_iterations(self, iterations: usize) -> Self
Set the number of iterations
Sourcepub fn with_confidence_levels(self, levels: Vec<f64>) -> Self
pub fn with_confidence_levels(self, levels: Vec<f64>) -> Self
Set confidence levels
Sourcepub const fn with_statistic(self, stat: BootstrapStatistic) -> Self
pub const fn with_statistic(self, stat: BootstrapStatistic) -> Self
Set the statistic
Sourcepub const fn with_percentile(self, percentile: f64) -> Self
pub const fn with_percentile(self, percentile: f64) -> Self
Set percentile value
Trait Implementations§
Source§impl Clone for BootstrapConfig
impl Clone for BootstrapConfig
Source§fn clone(&self) -> BootstrapConfig
fn clone(&self) -> BootstrapConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootstrapConfig
impl Debug for BootstrapConfig
Source§impl Default for BootstrapConfig
impl Default for BootstrapConfig
Source§impl<'de> Deserialize<'de> for BootstrapConfig
impl<'de> Deserialize<'de> for BootstrapConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BootstrapConfig
impl RefUnwindSafe for BootstrapConfig
impl Send for BootstrapConfig
impl Sync for BootstrapConfig
impl Unpin for BootstrapConfig
impl UnsafeUnpin for BootstrapConfig
impl UnwindSafe for BootstrapConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more