Struct staccato::StatisticsBundle [−][src]
pub struct StatisticsBundle { /* fields omitted */ }
Methods
impl StatisticsBundle
[src]
impl StatisticsBundle
pub fn from(vals: &[f64]) -> Option<StatisticsBundle>
[src]
pub fn from(vals: &[f64]) -> Option<StatisticsBundle>
Create a statistics bundle from a sequence of values.
Note that as opposed to the with_percentiles
method, there is no
requirement that these values are sorted.
This method returns None
if the sequence of values is empty.
pub fn with_percentiles(
vals: &[f64],
percentiles: &[u8]
) -> Option<StatisticsBundle>
[src]
pub fn with_percentiles(
vals: &[f64],
percentiles: &[u8]
) -> Option<StatisticsBundle>
Create a statistics bundle from a sorted sequence of values and a sequence of percentiles.
The values must be sorted or the statistics will be incorrect.
This method returns None
if the sequence of values is empty.
Additionally, if there are not enough values to create all the
desired percentile slices (e.g. 90th percentile for a series of
only 7 values) the slices without enough values will be omitted.
pub fn global_stats(&self) -> &Statistics
[src]
pub fn global_stats(&self) -> &Statistics
pub fn percentile_stats(&self) -> &[Statistics]
[src]
pub fn percentile_stats(&self) -> &[Statistics]
Trait Implementations
impl Debug for StatisticsBundle
[src]
impl Debug for StatisticsBundle
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for StatisticsBundle
[src]
impl Clone for StatisticsBundle
fn clone(&self) -> StatisticsBundle
[src]
fn clone(&self) -> StatisticsBundle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for StatisticsBundle
impl Send for StatisticsBundle
impl Sync for StatisticsBundle
impl Sync for StatisticsBundle