Add functions to analyse signal with windowing