Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 4 of 4) sorted by relevance

/test/dittosuite/include/ditto/
Dstatistics.h32 T StatisticsGetMin(const std::vector<T>& samples) { in StatisticsGetMin() argument
33 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() argument
40 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() argument
47 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 …]
Dresult.h39 void AddMeasurement(const std::string& type, const std::vector<double>& samples);
/test/dittosuite/src/
Dinstruction_set.cpp111 auto samples = sub_result->GetSamples("duration"); in CollectResults() local
115 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()
Dresult.cpp43 void Result::AddMeasurement(const std::string& name, const std::vector<double>& samples) { in AddMeasurement() argument
44 samples_[name] = samples; in AddMeasurement()