Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Data in criterion_stats::bivariate - Rust
[go: Go Back, main page]

Struct Data

Source
pub struct Data<'a, X, Y>(/* private fields */)
where
    X: 'a,
    Y: 'a;
Expand description

Bivariate (X, Y) data

Invariants:

  • No NaNs in the data
  • At least two data points in the set

Implementations§

Source§

impl<'a, X, Y> Data<'a, X, Y>

Source

pub fn len(&self) -> usize

Returns the length of the data set

Source

pub fn is_empty(&self) -> bool

Checks whether the data set is empty

Source

pub fn iter(&self) -> Pairs<'a, X, Y>

Iterate over the data set

Source§

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

Source

pub fn new(xs: &'a [X], ys: &'a [Y]) -> Data<'a, X, Y>

Creates a new data set from two existing slices

Source

pub fn bootstrap<T, S>( &self, nresamples: usize, statistic: S, ) -> T::Distributions
where S: Fn(Data<'_, X, Y>) -> T + 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)
Source

pub fn x(&self) -> &'a Sample<X>

Returns a view into the X data

Source

pub fn y(&self) -> &'a Sample<Y>

Returns a view into the Y data

Trait Implementations§

Source§

impl<'a, X, Y> Clone for Data<'a, X, Y>

Source§

fn clone(&self) -> Data<'a, X, Y>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, X, Y> Copy for Data<'a, X, Y>

Auto Trait Implementations§

§

impl<'a, X, Y> Freeze for Data<'a, X, Y>

§

impl<'a, X, Y> RefUnwindSafe for Data<'a, X, Y>

§

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>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.