[][src]Struct game_time::framerate::sample::RunningAverageSampler

pub struct RunningAverageSampler { /* fields omitted */ }

A frame rate sampler that computes a moving average from past frames without caching data.

RunningAverageSampler computes the average value by computing (avg*(N-1) + next) / N. This method does not require caching past frames, but is sensitive to large outliers influencing the value for many frames.

Methods

impl RunningAverageSampler
[src]

Construct a new RunningAverageSampler with a default sample size.

Construct a RunningAverageSampler with a specified sample size.

Trait Implementations

impl FrameRateSampler for RunningAverageSampler
[src]

impl Default for RunningAverageSampler
[src]

impl Clone for RunningAverageSampler
[src]

Performs copy-assignment from source. Read more

impl Debug for RunningAverageSampler
[src]

Auto Trait Implementations

impl Send for RunningAverageSampler

impl Sync for RunningAverageSampler

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> IntoDuration for T where
    U: FromDuration<T>, 
[src]