WYRDTEK Home Features Reference Downloads About


Reference/es_sc_new

Syntax

struct es_sc *es_sc_new( unsigned windowsize );

Arguments

unsigned windowsize window size of rolling dataset.

Description

Construct and return a new statistics calculator.

A statistics calculator can be constructed to run in one of two modes: rolling or static. This is indicated by the windowsize parameter. A windowsize greater than zero indicates the number of data points to maintain in a rolling "window" for computing rolling (i.e. moving) averages, standard deviations etc.. A windowsize of zero indicates a static dataset.

A statistics calculator can be subsequently destroyed via a call to es_sc_delete().

[Back To Reference] [Back To Reference/es_sc]