Searched refs:freq_vector (Results 1 – 2 of 2) sorted by relevance
205 void Result::MakeHistogramFromVector(const std::vector<int>& freq_vector, const int min_value) { in MakeHistogramFromVector() argument207 int max_frequency = *std::max_element(freq_vector.begin(), freq_vector.end()); in MakeHistogramFromVector()208 for (std::size_t i = 0; i < freq_vector.size(); i++) { in MakeHistogramFromVector()212 int hist_width = ceil(static_cast<double>(freq_vector[i]) * kMaxHistogramWidth / max_frequency); in MakeHistogramFromVector()215 std::cout << " { " << freq_vector[i] << " }\n"; in MakeHistogramFromVector()217 sum += freq_vector[i]; in MakeHistogramFromVector()233 std::vector<int> freq_vector(kMaxHistogramHeight, 0); in ComputeNormalizedFrequencyVector() local243 freq_vector[bin]++; in ComputeNormalizedFrequencyVector()245 return freq_vector; in ComputeNormalizedFrequencyVector()309 std::vector<int> freq_vector = ComputeNormalizedFrequencyVector(sample.first); in PrintHistograms() local[all …]
84 void MakeHistogramFromVector(const std::vector<int>& freq_vector, int min_value);