Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:48

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 // Adapted from donated nonius code.
0009 
0010 #ifndef CATCH_OUTLIER_CLASSIFICATION_HPP_INCLUDED
0011 #define CATCH_OUTLIER_CLASSIFICATION_HPP_INCLUDED
0012 
0013 namespace Catch {
0014     namespace Benchmark {
0015         struct OutlierClassification {
0016             int samples_seen = 0;
0017             int low_severe = 0;     // more than 3 times IQR below Q1
0018             int low_mild = 0;       // 1.5 to 3 times IQR below Q1
0019             int high_mild = 0;      // 1.5 to 3 times IQR above Q3
0020             int high_severe = 0;    // more than 3 times IQR above Q3
0021 
0022             int total() const {
0023                 return low_severe + low_mild + high_mild + high_severe;
0024             }
0025         };
0026     } // namespace Benchmark
0027 } // namespace Catch
0028 
0029 #endif // CATCH_OUTLIERS_CLASSIFICATION_HPP_INCLUDED