File cmb_timeseries.h
↰ Parent directory (include)
An automatically resizing array of ordered sample values, each sample a (x, t) tuple.
Definition (include/cmb_timeseries.h)
Detailed Description
The use case is that states change only at the discrete event times in a discrete event simulation. Between events, everything is constant. If sample values only are recorded at event times, the statistics may be biased. For example, collecting length data of a queue that is mostly empty with long time intervals of zero length. Storing data with time stamps allows correct weighting. Use cmb_timeseries_summarize() to compute the statistics into a weighted data summary when needed.
The data array is allocated from the heap as needed. The internal data array will be created on the heap even if the data series is declared as a local variable (on the stack).
Includes
cmb_dataset.h(File cmb_dataset.h)cmb_wtdsummary.h(File cmb_wtdsummary.h)