From 5311fee3130aa0a2ae9ad0628fc2eb9d03c2896c Mon Sep 17 00:00:00 2001
From: Yaroslav Spesivtsev <spesivtsevym@noreply.uit.mpei.ru>
Date: Mon, 28 Apr 2025 11:43:40 +0000
Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?=
 =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'Histogram/histogram.cpp'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Histogram/histogram.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Histogram/histogram.cpp b/Histogram/histogram.cpp
index e61b64e..62c3523 100644
--- a/Histogram/histogram.cpp
+++ b/Histogram/histogram.cpp
@@ -27,13 +27,13 @@ std::vector<size_t> make_histogram(const std::vector<double>& numbers, size_t bi
     double min, max;
     find_minmax(numbers, min, max);
     if (max == min) {
-        return bins; // ���������� ������ �������, find��� ��� ����������� �� ����� ���� ���������
+        return bins; 
     }
     double bin_width = (max - min) / bin_count;
     for (double number : numbers) {
         size_t bin_index = static_cast<size_t>((number - min) / bin_width);
         if (bin_index >= bin_count) {
-            bin_index = bin_count - 1; // ��������� �������� ������ max == number
+            bin_index = bin_count - 1; 
         }
         bins[bin_index]++;
     }
@@ -54,7 +54,7 @@ void show_histogram_svg(const std::vector<size_t>& bins) {
         const double bin_width = BLOCK_WIDTH * bins[i];
         const double top = i * BIN_HEIGHT;
         svg_text(TEXT_LEFT, top + TEXT_BASELINE, std::to_string(bins[i]));
-        svg_rect(TEXT_WIDTH, top, bin_width, BIN_HEIGHT, "black", "#aaffaa"); // ������ �����
+        svg_rect(TEXT_WIDTH, top, bin_width, BIN_HEIGHT, "black", "#aaffaa"); 
     }
     svg_end();
 }