pub struct Data<'a, X, Y>(/* private fields */)
where
X: 'a,
Y: 'a;
Expand description
Bivariate (X, Y)
data
Invariants:
- No
NaN
s in the data - At least two data points in the set
Implementations§
Source§impl<'a, X, Y> Data<'a, X, Y>where
X: Float,
Y: Float,
impl<'a, X, Y> Data<'a, X, Y>where
X: Float,
Y: Float,
Sourcepub fn new(xs: &'a [X], ys: &'a [Y]) -> Data<'a, X, Y>
pub fn new(xs: &'a [X], ys: &'a [Y]) -> Data<'a, X, Y>
Creates a new data set from two existing slices
Sourcepub fn bootstrap<T, S>(
&self,
nresamples: usize,
statistic: S,
) -> T::Distributions
pub fn bootstrap<T, S>( &self, nresamples: usize, statistic: S, ) -> T::Distributions
Returns the bootstrap distributions of the parameters estimated by the statistic
- Multi-threaded
- Time:
O(nresamples)
- Memory:
O(nresamples)
Trait Implementations§
Auto Trait Implementations§
impl<'a, X, Y> Freeze for Data<'a, X, Y>
impl<'a, X, Y> RefUnwindSafe for Data<'a, X, Y>where
X: RefUnwindSafe,
Y: RefUnwindSafe,
impl<'a, X, Y> Send for Data<'a, X, Y>
impl<'a, X, Y> Sync for Data<'a, X, Y>
impl<'a, X, Y> Unpin for Data<'a, X, Y>
impl<'a, X, Y> UnwindSafe for Data<'a, X, Y>where
X: RefUnwindSafe,
Y: RefUnwindSafe,
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