Multichannel slope algorithm with window and range