Hi Folks,
I have a list ( list = {1, 3, 5, 7, 5, 9, 11, 13, 10, 14, 15, 17}; ) I want to modify so that it is monotonically increasing. That is, I want to evaluate the list so that any current value < previous value is set to previous value, else, use current value. In a JSL formula it looks like this:
If( Dif( :List, 1 ) < 0,
Lag( :List, 1 ),
:List
);
Is it possible to conduct Dif and Lag-like functions on items in a matrix? Thanks.