PEAK.MAC

CONVERT BETWEEN INDEX, X VALUE, AND Y VALUE

 

GETXS computes x value from index and series

GETYS gets y value for x value of series

INDS computes index from x value and series

 

EXTRACT EVENT REGIONS

 

EXTRACTL region to first left event

EXTRACTLF region to first fractional left event

EXTRACTR region to first right event

EXTRACTRF region to first fractional right event

EXTRACTW region between same left and right events

EXTRACTW2 region between different left and right events

EXTRACTWF region between same fractional events

EXTRACTWF2 region between different fractional events

 

LEFT AND RIGHT BOUNDARIES OF FRACTIONAL EVENT REGION

 

EVENTNLF index of fractional left event

EVENTNRF index of fractional right event

EVENTXLF x value of fractional left event

EVENTXRF x value of fractional right event

EVENTYLF y value at fractional left event

EVENTYRF y value at fractional right event

 

LEFT AND RIGHT BOUNDARIES OF EVENT REGION

 

EVENTNL index of first left event

EVENTNR index of first right event

EVENTXL x value of first left event

EVENTXR x value of first right event

EVENTYL y value at first left event

EVENTYR y value at first right event

 

LEFT AND RIGHT EVENT LISTS

 

LISTL list of left event x values

LISTR list of right event x values

 

LEFT AND RIGHT PARTS

 

PARTL left part of data series

PARTR right part of data series

 

LIST OF SERIES OF EVENTS

 

GETEVENTNS list of indexes for events

GETEVENTXS list of x values for events

GETEVENTYS list of y values for events

 

PROCESS SERIES OF EVENTS

 

BUILDSP builds up series point by point

BUILDMC builds up a matrix column by column

 

WIDTH OF EVENT REGION

 

EVENTXLD x unit width to first left event

EVENTXRD x unit width to first right event

EVENTXW x unit width between same left and right events

EVENTXW2 x unit width between different left and right events

 

WIDTH OF FRACTIONAL EVENT REGION

 

EVENTXLDF x unit width to first fractional left event

EVENTXRDF x unit width to first fractional right event

EVENTXWF2 x unit width between different fractional events

EVENTXWF x unit width between same fractional events

 

Y VALUE DIFFERENCES

 

EVENTYLD y difference to first left event

EVENTYRD y difference to first right event