StdDevValue
trait · ferroui-dynamic-data · v0.5.0
trait StdDevValue: Copy + 'static
A value whose standard deviation the aggregations compute (int, long, float, double).
Members
Moment
type Moment: Copy + 'static
The type of the sums of the values and of their squares: i64 for i32 and i64 (upstream
widens int to long), the type itself for f32 and f64.
ZERO
const ZERO: <Self as >::Moment
The sum of no values.
moment
fn moment(self: Self) -> <Self as >::Moment
The value as a moment.
plus
fn plus(left: <Self as >::Moment, right: <Self as >::Moment) -> <Self as >::Moment
left + right, wrapping on overflow for the integers (C#'s unchecked arithmetic).
minus
fn minus(left: <Self as >::Moment, right: <Self as >::Moment) -> <Self as >::Moment
left - right, wrapping on overflow for the integers.
times
fn times(left: <Self as >::Moment, right: <Self as >::Moment) -> <Self as >::Moment
left * right, wrapping on overflow for the integers.
deviation
fn deviation(count: i32, sum_of_items: <Self as >::Moment, sum_of_squares: <Self as >::Moment) -> f64
The sample standard deviation of count values (at least two) whose sum is
sum_of_items and the sum of whose squares is sum_of_squares.
to_f64
fn to_f64(self: Self) -> f64
The value as the result (the implicit conversion of upstream's fallbackValue).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.