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

Method getMean

src/client/statisticalTimer.cpp:199–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199double
200StatisticalTimer::getMean( sTimerID id ) const
201{
202 if( clkTicks.empty( ) )
203 return 0;
204
205 size_t N = clkTicks.at( id ).size( );
206
207 Accumulator<unsigned long long> sum = std::for_each( clkTicks.at( id ).begin(), clkTicks.at( id ).end(), Accumulator<unsigned long long>() );
208
209 return static_cast<double>( sum.acc ) / N;
210}
211
212double
213StatisticalTimer::getVariance( sTimerID id ) const

Callers 1

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected