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)