FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StdDevValue

    trait · ferroui-dynamic-data · v0.5.0

    trait StdDevValue: Copy + 'static
    

    A value whose standard deviation the aggregations compute (int, long, float, double).

    View source

    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.

    Source

    ZERO

    const ZERO: <Self as >::Moment
    

    The sum of no values.

    Source

    moment

    fn moment(self: Self) -> <Self as >::Moment
    

    The value as a moment.

    Source

    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).

    Source

    minus

    fn minus(left: <Self as >::Moment, right: <Self as >::Moment) -> <Self as >::Moment
    

    left - right, wrapping on overflow for the integers.

    Source

    times

    fn times(left: <Self as >::Moment, right: <Self as >::Moment) -> <Self as >::Moment
    

    left * right, wrapping on overflow for the integers.

    Source

    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.

    Source

    to_f64

    fn to_f64(self: Self) -> f64
    

    The value as the result (the implicit conversion of upstream's fallbackValue).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.