Searched refs:samples (Results 1 – 4 of 4) sorted by relevance
32 T StatisticsGetMin(const std::vector<T>& samples) { in StatisticsGetMin() argument33 if (samples.empty()) LOGF("Cannot compute the min on an empty vector"); in StatisticsGetMin()35 return *std::min_element(samples.begin(), samples.end()); in StatisticsGetMin()39 T StatisticsGetMax(const std::vector<T>& samples) { in StatisticsGetMax() argument40 if (samples.empty()) LOGF("Cannot compute the max on an empty vector"); in StatisticsGetMax()42 return *std::max_element(samples.begin(), samples.end()); in StatisticsGetMax()46 T StatisticsGetMean(const std::vector<T>& samples) { in StatisticsGetMean() argument47 if (samples.empty()) LOGF("Cannot compute the mean on an empty vector"); in StatisticsGetMean()49 T result = std::accumulate(samples.begin(), samples.end(), T{}); in StatisticsGetMean()50 return result / samples.size(); in StatisticsGetMean()[all …]
39 void AddMeasurement(const std::string& type, const std::vector<double>& samples);
111 auto samples = sub_result->GetSamples("duration"); in CollectResults() local115 duration.resize(samples.size() / repeat); in CollectResults()118 for (std::size_t i = 0; i < samples.size() / repeat; ++i) { in CollectResults()120 duration[i] += samples[i * repeat + j]; in CollectResults()
43 void Result::AddMeasurement(const std::string& name, const std::vector<double>& samples) { in AddMeasurement() argument44 samples_[name] = samples; in AddMeasurement()