mimin

Syntax

mimin(X, window, [minPeriods])

Please see mFunctions for the parameters and windowing logic.

Details

Return the position of the element with the smallest value in X in a sliding window.

Examples

x = 1.2 2 NULL 6 -1 -1
mimin(x, 3);
// output
[,,0,0,2,1]

mimin(x, 3, 1);
// output
[0,0,0,0,2,1]

m=matrix(1 6 2 9 10 3, 9 10 2 6 6 6);
m;
#0 #1
1 9
6 10
2 2
9 6
10 6
3 6
mimin(m,3);
#0 #1
0 2
1 1
0 0
2 0

Related functions: imin, mimax