pub struct RiQuantileCalculator { /* private fields */ }Expand description
Quantile calculator for performance metrics.
This struct provides methods for calculating quantiles (percentiles) from a set of data points. It sorts the data and uses linear interpolation for non-integer indices.
Implementations§
Source§impl RiQuantileCalculator
impl RiQuantileCalculator
Sourcepub fn min(&self) -> Option<f64>
pub fn min(&self) -> Option<f64>
Gets the minimum value in the data set.
§Returns
An Option<f64> containing the minimum value, or None if the data is empty
Sourcepub fn max(&self) -> Option<f64>
pub fn max(&self) -> Option<f64>
Gets the maximum value in the data set.
§Returns
An Option<f64> containing the maximum value, or None if the data is empty
Sourcepub fn mean(&self) -> Option<f64>
pub fn mean(&self) -> Option<f64>
Gets the mean value of the data set.
§Returns
An Option<f64> containing the mean value, or None if the data is empty
Trait Implementations§
Source§impl Clone for RiQuantileCalculator
impl Clone for RiQuantileCalculator
Source§fn clone(&self) -> RiQuantileCalculator
fn clone(&self) -> RiQuantileCalculator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RiQuantileCalculator
impl Debug for RiQuantileCalculator
Source§impl Default for RiQuantileCalculator
impl Default for RiQuantileCalculator
Source§impl<'de> Deserialize<'de> for RiQuantileCalculator
impl<'de> Deserialize<'de> for RiQuantileCalculator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RiQuantileCalculator
impl RefUnwindSafe for RiQuantileCalculator
impl Send for RiQuantileCalculator
impl Sync for RiQuantileCalculator
impl Unpin for RiQuantileCalculator
impl UnsafeUnpin for RiQuantileCalculator
impl UnwindSafe for RiQuantileCalculator
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request