Lines Matching refs:sample
78 void statistic::addSample(double sample) {
79 sample -= offset;
80 KMP_DEBUG_ASSERT(std::isfinite(sample));
82 double delta = sample - meanVal;
86 m2 = m2 + delta * (sample - meanVal);
88 minVal = std::min(minVal, sample);
89 maxVal = std::max(maxVal, sample);
91 hist.addSample(sample);
177 // Which bin does this sample belong in ?
178 uint32_t logHistogram::findBin(double sample) {
179 double v = std::fabs(sample);
188 "Trying to add a sample that is too large into a histogram\n");
193 void logHistogram::addSample(double sample) {
194 if (sample == 0.0) {
202 KMP_DEBUG_ASSERT(std::isfinite(sample));
203 uint32_t bin = findBin(sample);
207 bins[bin].total += sample;
264 /* We accept the risk that we drop a sample because it really did start at
304 // stop current timer (record event/sample)
320 // stop current timer (record event/sample)