| 345 | |
| 346 | #if OPT_STATS |
| 347 | double calcDevSel( const int h, const int c, const double avg, |
| 348 | int* const SumSelsMap ) |
| 349 | { |
| 350 | int* const s = Sels[ h ]; |
| 351 | double sd = 0.0; |
| 352 | int i; |
| 353 | |
| 354 | for( i = 0; i < c; i++ ) |
| 355 | { |
| 356 | const double d = s[ i ] - avg; |
| 357 | SumSelsMap[ s[ i ]]++; |
| 358 | sd += d * d; |
| 359 | } |
| 360 | |
| 361 | return( sd / c ); |
| 362 | } |
| 363 | #endif // OPT_STATS |
| 364 | |
| 365 | void performOpt() |
nothing calls this directly
no outgoing calls
no test coverage detected