Professional Documents
Culture Documents
h = highest(len)
//The highest high over the length
h1 = dev(h, len) ? na : h
//h1 is a pivot of h if it holds for the full length
hpivot = fixnan(h1)
//creates a series which is equal to the last pivot
l = lowest(len)
l1 = dev(l, len) ? na : l
lpivot = fixnan(l1)
//repeated for lows