Struct quantiles::greenwald_khanna::Stream [] [src]

pub struct Stream<T> where T: Ord { /* fields omitted */ }

The summary S of the observations seen so far.

Methods

impl<T> Stream<T> where T: Ord
[src]

Creates a new instance of a Stream

Locates the correct position in the summary data set for the observation v, and inserts a new tuple (v,1,floor(2en)) If v is the new minimum or maximum, then instead insert tuple (v,1,0).

Compute the epsilon-approximate phi-quantile from the summary data structure.

Calculate p = 2epsilon * n

The number of observations inserted into the stream.

Indication of the space usage of the summary data structure Returns the number of tuples in the summary data structure.

Trait Implementations

impl<T: Debug> Debug for Stream<T> where T: Ord
[src]

Formats the value using the given formatter.