Struct criterion_stats::bivariate::Data [−][src]
Bivariate (X, Y)
data
Invariants:
- No
NaN
s in the data - At least two data points in the set
Implementations
impl<'a, X, Y> Data<'a, X, Y>
[src]
pub fn len(&self) -> usize
[src]
Returns the length of the data set
pub fn is_empty(&self) -> bool
[src]
Checks whether the data set is empty
pub fn iter(&self) -> Pairs<'a, X, Y>ⓘ
[src]
Iterate over the data set
impl<'a, X, Y> Data<'a, X, Y> where
X: Float,
Y: Float,
[src]
X: Float,
Y: Float,
pub fn new(xs: &'a [X], ys: &'a [Y]) -> Data<'a, X, Y>
[src]
Creates a new data set from two existing slices
pub fn bootstrap<T, S>(
&self,
nresamples: usize,
statistic: S
) -> T::Distributions where
S: Fn(Data<'_, X, Y>) -> T,
S: Sync,
T: Tuple,
T::Distributions: Send,
T::Builder: Send,
[src]
&self,
nresamples: usize,
statistic: S
) -> T::Distributions where
S: Fn(Data<'_, X, Y>) -> T,
S: Sync,
T: Tuple,
T::Distributions: Send,
T::Builder: Send,
Returns the bootstrap distributions of the parameters estimated by the statistic
- Multi-threaded
- Time:
O(nresamples)
- Memory:
O(nresamples)
pub fn x(&self) -> &'a Sample<X>
[src]
Returns a view into the X
data
pub fn y(&self) -> &'a Sample<Y>
[src]
Returns a view into the Y
data
Trait Implementations
Auto Trait Implementations
impl<'a, X, Y> RefUnwindSafe for Data<'a, X, Y> where
X: RefUnwindSafe,
Y: RefUnwindSafe,
X: RefUnwindSafe,
Y: RefUnwindSafe,
impl<'a, X, Y> Send for Data<'a, X, Y> where
X: Sync,
Y: Sync,
X: Sync,
Y: Sync,
impl<'a, X, Y> Sync for Data<'a, X, Y> where
X: Sync,
Y: Sync,
X: Sync,
Y: Sync,
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,
X: RefUnwindSafe,
Y: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,