MCPcopy Create free account
hub / github.com/avaneev/biteopt / CSumStats

Class CSumStats

tests/tester.h:40–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 */
39
40class CSumStats
41{
42public:
43 int SumIt; ///< The overall number of performed function evaluations in
44 ///< successful attempts.
45 int SumItAll; ///< The overall number of performed function evaluations in
46 ///< all attempts.
47 double SumIt_l10n; ///< = sum( log( It ) / log( 10 )) in completed
48 ///< attempts.
49 int SumItImpr; ///< Sum of improving iterations across successful
50 ///< attempts.
51 int SumItImprAll; ///< Sum of improving iterations across all attempts.
52 double SumRjCost; ///< Summary unbiased costs detected in all rejected
53 ///< attempts. Geometric mean.
54 double SumRMS; ///< = sum( RMS ).
55 double SumRMS_l10n; ///< = sum( log( RMS / N ) / log( 10 )).
56 int SumRMSCount; ///< The number of elements summed in the SumRMS.
57 int TotalAttempts; ///< The overall number of function evaluation attempts.
58 ///< Must be set externally.
59 int ComplAttempts; ///< The overall number of successful function
60 ///< attempts.
61 int ComplFuncs; ///< The total number of optimized functions.
62
63 #if defined( EVALBINS )
64 static const int binspan = 50;
65 static const int binc = 1 + binspan * 2;
66 double bins[ binc ];
67 double RMSSpan;
68 #endif // defined( EVALBINS )
69
70 #if OPT_STATS
71 int SumSelsMap[ CBiteOpt :: MaxSelCount * 10 ]; ///< Sums of
72 ///< individual choices associated with selectors over all
73 ///< successful attempts.
74 int SumSelIncrsMap[ CBiteOpt :: MaxSelCount * 10 ]; ///< Sums of
75 ///< individual choice increments associated with selectors over
76 ///< all successful attempts.
77 int SumSelDecrsMap[ CBiteOpt :: MaxSelCount * 10 ]; ///< Sums of
78 ///< individual choice decrements associated with selectors over
79 ///< all successful attempts.
80 double SumAvgSels[ CBiteOpt :: MaxSelCount ]; ///< Sum of average
81 ///< selector choices over all successful attempts.
82 double SumDevSels[ CBiteOpt :: MaxSelCount ]; ///< Sum of average
83 ///< selector choice deviations (squared) over all successful
84 ///< attempts.
85 #endif // OPT_STATS
86
87 #if OPT_TIME
88 double TimeOpt; ///< Overall time spent in optimize() function,
89 ///< seconds.
90 double TimeFunc; ///< Overall time spent in objective function,
91 ///< seconds.
92 #endif // OPT_TIME
93
94 void clear()
95 {
96 SumIt = 0;
97 SumItAll = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected