1 /* 2 * Created by Joachim on 16/04/2019. 3 * Adapted from donated nonius code. 4 * 5 * Distributed under the Boost Software License, Version 1.0. (See accompanying 6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 9 // Outlier information 10 #ifndef TWOBLUECUBES_CATCH_OUTLIERS_HPP_INCLUDED 11 #define TWOBLUECUBES_CATCH_OUTLIERS_HPP_INCLUDED 12 13 namespace Catch { 14 namespace Benchmark { 15 struct OutlierClassification { 16 int samples_seen = 0; 17 int low_severe = 0; // more than 3 times IQR below Q1 18 int low_mild = 0; // 1.5 to 3 times IQR below Q1 19 int high_mild = 0; // 1.5 to 3 times IQR above Q3 20 int high_severe = 0; // more than 3 times IQR above Q3 21 totalCatch::Benchmark::OutlierClassification22 int total() const { 23 return low_severe + low_mild + high_mild + high_severe; 24 } 25 }; 26 } // namespace Benchmark 27 } // namespace Catch 28 29 #endif // TWOBLUECUBES_CATCH_OUTLIERS_HPP_INCLUDED 30