MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / getMean

Method getMean

src/statTimer/statisticalTimer.CPU.cpp:251–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251cl_double
252CpuStatTimer::getMean( size_t id ) const
253{
254 if( clkTicks.empty( ) )
255 return 0;
256
257 size_t N = clkTicks.at( id ).size( );
258
259 Accumulator<cl_ulong> sum = std::for_each( clkTicks.at( id ).begin(), clkTicks.at( id ).end(), Accumulator<cl_ulong>() );
260
261 return static_cast<cl_double>( sum.acc ) / N;
262}
263
264cl_double
265CpuStatTimer::getVariance( size_t id ) const

Callers 1

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected