Struct criterion_stats::bivariate::Data[][src]

pub struct Data<'a, X, Y>(_, _)
where
    X: 'a,
    Y: 'a
;

Bivariate (X, Y) data

Invariants:

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>

Notable traits for Pairs<'a, X, Y>

impl<'a, X, Y> Iterator for Pairs<'a, X, Y> type Item = (&'a X, &'a Y);
[src]

Iterate over the data set

impl<'a, X, Y> Data<'a, X, Y> where
    X: Float,
    Y: Float, 
[src]

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]

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

impl<'a, X, Y> Clone for Data<'a, X, Y>[src]

impl<'a, X, Y> Copy for Data<'a, X, Y>[src]

Auto Trait Implementations

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> where
    X: Sync,
    Y: Sync

impl<'a, X, Y> Sync for Data<'a, X, Y> where
    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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.