I have an array of data from a function that resemble loosely a sine wave which were obtained through filtering, let\'s call them A[ ]. They are not smooth or scaled correct