Searched refs:freq_vector (Results 1 – 2 of 2) sorted by relevance
194 void Result::MakeHistogramFromVector(const std::vector<int>& freq_vector, const int min_value) { in MakeHistogramFromVector() argument196 int max_frequency = *std::max_element(freq_vector.begin(), freq_vector.end()); in MakeHistogramFromVector()197 for (std::size_t i = 0; i < freq_vector.size(); i++) { in MakeHistogramFromVector()201 int hist_width = ceil(static_cast<double>(freq_vector[i]) * kMaxHistogramWidth / max_frequency); in MakeHistogramFromVector()204 std::cout << " { " << freq_vector[i] << " }\n"; in MakeHistogramFromVector()206 sum += freq_vector[i]; in MakeHistogramFromVector()222 std::vector<int> freq_vector(kMaxHistogramHeight, 0); in ComputeNormalizedFrequencyVector() local232 freq_vector[bin]++; in ComputeNormalizedFrequencyVector()234 return freq_vector; in ComputeNormalizedFrequencyVector()298 std::vector<int> freq_vector = ComputeNormalizedFrequencyVector(sample.first); in PrintHistograms() local[all …]
75 void MakeHistogramFromVector(const std::vector<int>& freq_vector, int min_value);