// Copyright 2016 Google Inc. All Rights Reserved. #ifndef WVCDM_PROFILER_STATS_H_ #define WVCDM_PROFILER_STATS_H_ #include namespace wvcdm { namespace oemprofiler { class Stat { public: Stat(); void Update(uint64_t sample); void Reset(); uint64_t GetMin() const; uint64_t GetMax() const; uint64_t GetSampleSize() const; double GetMean() const; double GetVariance() const; private: uint64_t min_; uint64_t max_; double mean_; uint64_t count_; double sdev_m_; double sdev_s_; Stat(const Stat&); void operator=(const Stat&); }; } // namespace oemprofiler } // namespace wvcdm #endif