diff options
Diffstat (limited to 'src/statistics.h')
-rw-r--r-- | src/statistics.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/statistics.h b/src/statistics.h index 7eccc85..6e5560e 100644 --- a/src/statistics.h +++ b/src/statistics.h @@ -22,15 +22,22 @@ namespace benchmark { -// Return a vector containing the mean, median and standard devation information -// (and any user-specified info) for the specified list of reports. If 'reports' -// contains less than two non-errored runs an empty vector is returned +// Return a vector containing the mean, median and standard deviation +// information (and any user-specified info) for the specified list of reports. +// If 'reports' contains less than two non-errored runs an empty vector is +// returned +BENCHMARK_EXPORT std::vector<BenchmarkReporter::Run> ComputeStats( const std::vector<BenchmarkReporter::Run>& reports); +BENCHMARK_EXPORT double StatisticsMean(const std::vector<double>& v); +BENCHMARK_EXPORT double StatisticsMedian(const std::vector<double>& v); +BENCHMARK_EXPORT double StatisticsStdDev(const std::vector<double>& v); +BENCHMARK_EXPORT +double StatisticsCV(const std::vector<double>& v); } // end namespace benchmark |