Struct criterion_stats::Distribution [] [src]

pub struct Distribution<A>(_);

The bootstrap distribution of some parameter

Methods

impl<A> Distribution<A> where
    A: Float, 
[src]

[src]

Computes the confidence interval of the population parameter using percentiles

Panics

Panics if the confidence_level is not in the (0, 1) range.

[src]

Computes the "likelihood" of seeing the value t or "more extreme" values in the distribution.

Methods from Deref<Target = Sample<A>>

[src]

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.

[src]

Returns the biggest element in the sample

  • Time: O(length)

[src]

Returns the arithmetic average of the sample

  • Time: O(length)

[src]

Returns the median absolute deviation

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

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

[src]

Returns the median absolute deviation as a percentage of the median

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

[src]

Returns the smallest element in the sample

  • Time: O(length)

[src]

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)

[src]

Returns the standard deviation of the sample

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

  • Time: O(length)

[src]

Returns the standard deviation as a percentage of the mean

  • Time: O(length)

[src]

Returns the sum of all the elements of the sample

  • Time: O(length)

[src]

Returns the t score between these two samples

  • Time: O(length)

[src]

Returns the variance of the sample

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

  • Time: O(length)

[src]

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> Deref for Distribution<A>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.