pub struct PostAggregation<F, R> { /* private fields */ }
Expand description
Post-aggregation transform.
A post-aggregation composes a Statistic
and arbitrarily maps its aggregation. For example,
a transform may discretize the continuous aggregation of a statistic.
Implementations§
Source§impl<F, R> PostAggregation<F, R>
impl<F, R> PostAggregation<F, R>
pub fn with(statistic: F, transform: R) -> Self
Sourcepub fn from_transform(transform: R) -> Selfwhere
F: Default,
pub fn from_transform(transform: R) -> Selfwhere
F: Default,
Constructs a PostAggregation
from a transform function.
The default statistic is composed.
Trait Implementations§
Source§impl<F: Clone, R: Clone> Clone for PostAggregation<F, R>
impl<F: Clone, R: Clone> Clone for PostAggregation<F, R>
Source§fn clone(&self) -> PostAggregation<F, R>
fn clone(&self) -> PostAggregation<F, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A, F, R> Statistic for PostAggregation<F, R>
impl<A, F, R> Statistic for PostAggregation<F, R>
Source§type Aggregation = A
type Aggregation = A
The type of the statistical aggregation.
Source§fn fold(&mut self, sample: F::Sample) -> Result<(), FoldError>
fn fold(&mut self, sample: F::Sample) -> Result<(), FoldError>
Folds a sample into the aggregation of the statistic. Read more
Source§fn fill(&mut self, sample: F::Sample, n: NonZeroUsize) -> Result<(), FoldError>
fn fill(&mut self, sample: F::Sample, n: NonZeroUsize) -> Result<(), FoldError>
Folds a sample into the aggregation of a statistic
n
(one or more) times. Read moreSource§fn aggregation(&self) -> Option<Self::Aggregation>
fn aggregation(&self) -> Option<Self::Aggregation>
Gets the statistical aggregation. Read more
impl<F: Copy, R: Copy> Copy for PostAggregation<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for PostAggregation<F, R>
impl<F, R> RefUnwindSafe for PostAggregation<F, R>where
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<F, R> Send for PostAggregation<F, R>
impl<F, R> Sync for PostAggregation<F, R>
impl<F, R> Unpin for PostAggregation<F, R>
impl<F, R> UnwindSafe for PostAggregation<F, R>where
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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 more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<F> StatisticExt for Fwhere
F: Statistic,
impl<F> StatisticExt for Fwhere
F: Statistic,
Source§fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
Gets the statistical aggregation and resets the statistic.