#[non_exhaustive]pub struct BootstrapResult {
pub estimate: f64,
pub replicates: Vec<f64>,
pub standard_error: f64,
pub bias: f64,
}Expand description
Bootstrap replicates of a statistic.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.estimate: f64The statistic on the original sample.
replicates: Vec<f64>The statistic on each resample.
standard_error: f64The standard deviation of the replicates.
bias: f64mean(replicates) − estimate.
Implementations§
Source§impl BootstrapResult
impl BootstrapResult
Sourcepub fn percentile_interval(&self, confidence: f64) -> (f64, f64)
pub fn percentile_interval(&self, confidence: f64) -> (f64, f64)
The percentile interval: the (1 ∓ confidence)/2 quantiles of the replicates.
Sourcepub fn bca_interval<S: Fn(&[f64]) -> f64>(
&self,
data: &[f64],
statistic: S,
confidence: f64,
) -> (f64, f64)
pub fn bca_interval<S: Fn(&[f64]) -> f64>( &self, data: &[f64], statistic: S, confidence: f64, ) -> (f64, f64)
The bias-corrected and accelerated (BCa) interval of Efron: the percentile levels are
shifted by the bias correction z₀ = Φ⁻¹(#{θ* < θ̂}/B) and the acceleration a from the
jackknife skewness of statistic on data (the same data and statistic as the
bootstrap). Second-order accurate, unlike the percentile interval.
Trait Implementations§
Source§impl Clone for BootstrapResult
impl Clone for BootstrapResult
Auto Trait Implementations§
impl Freeze for BootstrapResult
impl RefUnwindSafe for BootstrapResult
impl Send for BootstrapResult
impl Sync for BootstrapResult
impl Unpin for BootstrapResult
impl UnsafeUnpin for BootstrapResult
impl UnwindSafe for BootstrapResult
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