From 5dd7f82a34501dc48b985c9fe4822cfa2ef125c2 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:39:18 +0530 Subject: [PATCH] chore: use iwyu on probablity/**.cpp --- probability/geometric_dist.cpp | 17 +++++++++-------- probability/windowed_median.cpp | 13 +++++++------ 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/probability/geometric_dist.cpp b/probability/geometric_dist.cpp index a9bc7aeb6..16a8edfb2 100644 --- a/probability/geometric_dist.cpp +++ b/probability/geometric_dist.cpp @@ -19,14 +19,15 @@ * @author [Domenic Zingsheim](https://github.com/DerAndereDomenic) */ -#include /// for assert -#include /// for math functions -#include /// for fixed size data types -#include /// for time to initialize rng -#include /// for std::cout -#include /// for std::numeric_limits -#include /// for random numbers -#include /// for std::vector +#include // for abs +#include // for rand, srand, RAND_MAX +#include // for assert +#include // for log, pow, sqrt +#include // for uint32_t +#include // for time +#include // for basic_ostream, char_traits, operator<<, cout +#include // for numeric_limits +#include // for vector /** * @namespace probability diff --git a/probability/windowed_median.cpp b/probability/windowed_median.cpp index 52c70ae24..5998d90f4 100644 --- a/probability/windowed_median.cpp +++ b/probability/windowed_median.cpp @@ -28,12 +28,13 @@ * Time complexity: O(logN). Space complexity: O(N). N - size of window * @author [Yaniv Hollander](https://github.com/YanivHollander) */ -#include /// for assert -#include /// for std::rand - needed in testing -#include /// for std::time - needed in testing -#include /// for std::list - used to manage sliding window -#include /// for std::multiset - used to manage multi-value sorted sliding window values -#include /// for std::vector - needed in testing +#include // for assert +#include // for rand, RAND_MAX, srand +#include // for time +#include // for _List_iterator, list +#include // for _Rb_tree_const_iterator, multiset +#include // for vector +#include // for next /** * @namespace probability