From 0d539a12bcbc5b08427e79ceba8ab56e7091eaa1 Mon Sep 17 00:00:00 2001 From: Yaniv Hollander Date: Sun, 3 Oct 2021 22:53:06 -0400 Subject: [PATCH] Update windowed_median.cpp --- probability/windowed_median.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/probability/windowed_median.cpp b/probability/windowed_median.cpp index 26cdb7fe6..4a09de490 100644 --- a/probability/windowed_median.cpp +++ b/probability/windowed_median.cpp @@ -22,6 +22,10 @@ #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::time - needed in testing +#include // for std::rand - needed in testing +#include // for std::vector - needed in testing + /** * @namespace probability * @brief Probability algorithms @@ -136,7 +140,6 @@ public: }; } // namespace probability -#include /** * @brief A testing function * @param vals Stream of values @@ -152,8 +155,6 @@ static void test(const std::vector &vals, int windowSize) { } } -#include -#include /** * @brief Main function * @param argc commandline argument count (ignored)