I have a set of samples that represents a waveform. This waveform resembles a frequency modulated sinusoidal wave (only it is not).
I would like to invert this waveform or
shift it by $2\pi$ shift it by $\pi$. of course taking the cosine of samples as they are without preprocessing is wrong.
What should I do to achieve this?