Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Sliding minimum.
Documentation
slideMinIndicesOn :: (Vector v a, Ord b) => (a -> b) -> Int -> v a -> Vector Int #
\(O(N)\) https://qiita.com/kuuso1/items/318d42cd089a49eeb332
Returns indices of elements of the minimum values in corresponding spans.
Drop the first len - 1
elements if you don't need spans shorter than the len
.