Struct criterion_stats::bivariate::Data
[−]
[src]
pub struct Data<'a, X, Y>(_, _)
where
X: 'a,
Y: 'a;
Bivariate (X, Y)
data
Invariants:
- No
NaN
s in the data - At least two data points in the set
Methods
impl<'a, X, Y> Data<'a, X, Y>
[src]
fn len(&self) -> usize
[src]
Returns the length of the data set
fn is_empty(&self) -> bool
[src]
Checks whether the data set is empty
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,
fn new(xs: &'a [X], ys: &'a [Y]) -> Data<'a, X, Y>
[src]
Creates a new data set from two existing slices
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]
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)
fn x(&self) -> &'a Sample<X>
[src]
Returns a view into the X
data
fn y(&self) -> &'a Sample<Y>
[src]
Returns a view into the Y
data