Struct stats::OnlineStats [] [src]

pub struct OnlineStats { /* fields omitted */ }

Online state for computing mean, variance and standard deviation.

Methods

impl OnlineStats
[src]

[src]

Create initial state.

Population size, variance and mean are set to 0.

[src]

Initializes variance from a sample.

[src]

Return the current mean.

[src]

Return the current standard deviation.

[src]

Return the current variance.

[src]

Add a new sample.

[src]

Add a new NULL value to the population.

This increases the population size by 1.

[src]

Returns the number of data points.

Trait Implementations

impl Clone for OnlineStats
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for OnlineStats
[src]

impl Commute for OnlineStats
[src]

[src]

Merges the value other into self.

[src]

Merges the values in the iterator into self.

impl Default for OnlineStats
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for OnlineStats
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: ToPrimitive> FromIterator<T> for OnlineStats
[src]

[src]

Creates a value from an iterator. Read more

impl<T: ToPrimitive> Extend<T> for OnlineStats
[src]

[src]

Extends a collection with the contents of an iterator. Read more

Auto Trait Implementations

impl Send for OnlineStats

impl Sync for OnlineStats