pub struct AvgAccumulator { /* private fields */ }
Expand description

An accumulator to compute the average

Implementations§

Creates a new AvgAccumulator

Trait Implementations§

Returns the state of the accumulator at the end of the accumulation. in the case of an average on which we track sum and n, this function should return a vector of two values, sum and n. Read more
Updates the accumulator’s state from a vector of arrays.
updates the accumulator’s state from a vector of states.
returns its value based on its current state.
Allocated size required for this accumulator, in bytes, including Self. Allocated means that for internal containers such as Vec, the capacity should be used not the len Read more
Retracts an update (caused by the given inputs) to accumulator’s state. Inverse operation of the update_batch operation. This method must be for accumulators that should support bounded OVER aggregates. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.