Struct hdrsample::iterators::IterationValue
[−]
[src]
pub struct IterationValue<T: Counter> { /* fields omitted */ }
The value emitted at each step when iterating over a Histogram
.
Methods
impl<T: Counter> IterationValue<T>
[src]
fn new(
value_iterated_to: u64,
quantile: f64,
quantile_iterated_to: f64,
count_at_value: T,
count_since_last_iteration: u64
) -> IterationValue<T>
[src]
value_iterated_to: u64,
quantile: f64,
quantile_iterated_to: f64,
count_at_value: T,
count_since_last_iteration: u64
) -> IterationValue<T>
Create a new IterationValue.
fn value_iterated_to(&self) -> u64
[src]
The value iterated to. Some iterators provide a specific value inside the bucket, while others just use the highest value in the bucket.
fn percentile(&self) -> f64
[src]
Percent of recorded values that are at or below the current bucket.
This is simply the quantile multiplied by 100.0, so if you care about maintaining the best
floating-point precision, use quantile()
instead.
fn quantile(&self) -> f64
[src]
Quantile of recorded values that are at or below the current bucket.
fn quantile_iterated_to(&self) -> f64
[src]
Quantile iterated to, which may be different than quantile()
when an iterator provides
information about the specific quantile it's iterating to.
fn count_at_value(&self) -> T
[src]
Recorded count for values equivalent to value
fn count_since_last_iteration(&self) -> u64
[src]
Number of values traversed since the last iteration step
Trait Implementations
impl<T: Debug + Counter> Debug for IterationValue<T>
[src]
impl<T: PartialEq + Counter> PartialEq for IterationValue<T>
[src]
fn eq(&self, __arg_0: &IterationValue<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IterationValue<T>) -> bool
[src]
This method tests for !=
.