mmaxPositiveStreak#
- swordfish.function.mmaxPositiveStreak()#
Obtain the maximum value of the sum of consecutive positive numbers in X within a sliding window of given size (based on the number of elements).
- Parameters:
X (Constant) – A vector/matrix/table/tuple (with scalars or equal-length vectors)/dictionary.
window (Constant) – An integer no smaller than 2 or a scalar of DURATION type indicating the size of the sliding window. Note: The window size is capped at 102400 when m-functions are used in the streaming engines.