Add mean and std method interfaces at the appropriate places in the hierarchy. These methods should return floating point numbers (an optional chunk argument is needed in some cases). Also add an online_mean and online_std for StreamTimeSeriesInterface time-series, which themselves return the appropriate time-series. These "online" methods should return new SimulatedTimeSeries of the appropriate type, and when produce is called on them, should produce chunk means and standard deviations, starting from the current state of the time series. (Notice that this will be the meaning of mean and std with non default chunk as well: i.e., the last chunk observations' statistic.)
From the Project Spec 5
Add
mean
andstd
method interfaces at the appropriate places in the hierarchy. These methods should return floating point numbers (an optionalchunk
argument is needed in some cases). Also add anonline_mean
andonline_std
forStreamTimeSeriesInterface
time-series, which themselves return the appropriate time-series. These "online" methods should return newSimulatedTimeSeries
of the appropriate type, and whenproduce
is called on them, should producechunk
means and standard deviations, starting from the current state of the time series. (Notice that this will be the meaning ofmean
andstd
with non defaultchunk
as well: i.e., the last chunk observations' statistic.)Put this code into your project repo.