Skip to main content

rolling_min_i64

Function rolling_min_i64 

Source
pub fn rolling_min_i64(data: &[i64], window: usize) -> Vec<Option<i64>>
Expand description

Rolling minimum over i64 data using monotonic deque. O(n) amortized.

Elements before the window is full are None.