Go to the documentation of this file.
6 #ifndef OPENMPCD_ONTHEFLYSTATISTICSDDDA_HPP
7 #define OPENMPCD_ONTHEFLYSTATISTICSDDDA_HPP
11 #include <boost/optional/optional.hpp>
173 const std::size_t blockID)
const;
254 void addDatum(
const T& datum,
const std::size_t blockID);
257 std::vector<OnTheFlyStatistics<T> > blocks;
259 std::vector<boost::optional<T> > waiting;
266 #endif //OPENMPCD_ONTHEFLYSTATISTICSDDDA_HPP
const T getBlockStandardErrorOfTheMean(const std::size_t blockID) const
Returns an estimate for the standard deviation of the standard error of the mean for a given blockID.
std::size_t getMaximumBlockSize() const
Returns the largest block size for which there is at least one data point.
void unserializeFromString(const std::string &state)
Discards the current state, and loads the state specified in the given string instead.
std::size_t getOptimalBlockIDForStandardErrorOfTheMean() const
Returns the block ID corresponding to the optimal block size, in the sense that the corresponding blo...
void addDatum(const T &datum)
Adds a datum to the sample.
const T getBlockVariance(const std::size_t blockID) const
Returns the sample variance in the block with the given blockID.
std::size_t getMaximumBlockID() const
Returns the ID of the largest block size created so far.
const T getBlockStandardDeviation(const std::size_t blockID) const
Returns the sample standard deviation in the block with the given blockID.
const std::string serializeToString() const
Returns a string that contains the state of this instance.
const T getEstimatedStandardDeviationOfBlockStandardErrorOfTheMean(const std::size_t blockID) const
Returns an estimate for the standard deviation of the standard error of the mean for a given blockID.
OnTheFlyStatisticsDDDA()
The constructor.
const T getSampleMean() const
Returns the mean of all the values added so far.
bool hasBlockVariance(const std::size_t blockID) const
Returns whether the block with the given blockID has enough data to compute a sample variance.
const T getSampleStandardDeviation() const
Returns the raw sample standard deviation, i.e.
Computes sample means and their errors for (possibly) serially correlated data.
const T getOptimalStandardErrorOfTheMean() const
Returns the best estimation of the true standard error of the mean of the data, after decorrelation.
bool optimalStandardErrorOfTheMeanEstimateIsReliable() const
Returns whether the sample is large enough for the estimate of the standard error of the mean,...
std::size_t getSampleSize() const
Returns the number of data points added so far.