Struct criterion_stats::univariate::outliers::tukey::LabeledSample[][src]

pub struct LabeledSample<'a, A> where
    A: 'a + Float, 
{ /* fields omitted */ }

A classified/labeled sample.

The labeled data can be accessed using the indexing operator. The order of the data points is retained.

NOTE: Due to limitations in the indexing traits, only the label is returned. Once the IndexGet trait lands in stdlib, the indexing operation will return a (data_point, label) pair.

Methods

impl<'a, A> LabeledSample<'a, A> where
    A: Float, 
[src]

Returns the number of data points per label

  • Time: O(length)

Returns the fences used to classify the outliers

Important traits for Iter<'a, A>

Returns an iterator over the labeled data

Methods from Deref<Target = Sample<A>>

Returns a slice that contains all the data points

NOTE: This will be removed in favor of a Deref<Target=[A]> implementation once rust-lang/rust#22257 is fixed.

Returns the biggest element in the sample

  • Time: O(length)

Returns the arithmetic average of the sample

  • Time: O(length)

Returns the median absolute deviation

The median can be optionally passed along to speed up (2X) the computation

  • Time: O(length)
  • Memory: O(length)

Returns the median absolute deviation as a percentage of the median

  • Time: O(length)
  • Memory: O(length)

Returns the smallest element in the sample

  • Time: O(length)

Returns a "view" into the percentiles of the sample

This "view" makes consecutive computations of percentiles much faster (O(1))

  • Time: O(N log N) where N = length
  • Memory: O(length)

Returns the standard deviation of the sample

The mean can be optionally passed along to speed up (2X) the computation

  • Time: O(length)

Returns the standard deviation as a percentage of the mean

  • Time: O(length)

Returns the sum of all the elements of the sample

  • Time: O(length)

Returns the t score between these two samples

  • Time: O(length)

Returns the variance of the sample

The mean can be optionally passed along to speed up (2X) the computation

  • Time: O(length)

Returns the bootstrap distributions of the parameters estimated by the 1-sample statistic

  • Multi-threaded
  • Time: O(nresamples)
  • Memory: O(nresamples)

Trait Implementations

impl<'a, A: Clone> Clone for LabeledSample<'a, A> where
    A: 'a + Float, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, A: Copy> Copy for LabeledSample<'a, A> where
    A: 'a + Float, 
[src]

impl<'a, A> Deref for LabeledSample<'a, A> where
    A: Float, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a, A> Index<usize> for LabeledSample<'a, A> where
    A: Float, 
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a, 'b, A> IntoIterator for &'b LabeledSample<'a, A> where
    A: Float, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for Iter<'a, A>

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'a, A> Send for LabeledSample<'a, A>

impl<'a, A> Sync for LabeledSample<'a, A>