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

Method calcDevSel

tests/tester.h:347–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected