diff --git a/probability/windowed_median.cpp b/probability/windowed_median.cpp index 031a51213..26cdb7fe6 100644 --- a/probability/windowed_median.cpp +++ b/probability/windowed_median.cpp @@ -18,7 +18,7 @@ * @author [Yaniv Hollander](https://github.com/YanivHollander) */ #include // for assert -#include // for std::uint32_t +#include // for std::uint64_t #include // for std::list - used to manage sliding window #include // for std::multiset - used to manage multi-value sorted sliding window values @@ -32,7 +32,7 @@ namespace probability { * @brief A class to calculate the median of a leading sliding window at the back of a stream of integer values. */ class WindowedMedian { - const std::uint32_t _windowSize; // Sliding window size + const std::uint64_t _windowSize; // Sliding window size std::list _window; // A sliding window of values along the stream std::multiset _sortedValues; // A DS to represent a balanced multi-value binary search tree (BST) std::multiset::const_iterator _itMedian; // An iterator that points to the root of the multi-value BST @@ -92,7 +92,7 @@ public: * @brief Constructs a WindowedMedian object * @param windowSize Sliding window size */ - explicit WindowedMedian(std::uint32_t windowSize) : _windowSize(windowSize) {}; + explicit WindowedMedian(std::uint64_t windowSize) : _windowSize(windowSize) {}; /** * @brief Insert a new value to the stream