My problem is the following: I am sampling data from a sine signal
- Samples come in a online fashion (more and more data incoming through time).
- The device does not have a lot of memory so it is impossible to store a lot of points -> the algorithm needs to be a online fashion.
- The sine is noisy (assuming gaussian noise).
- Sometimes it is clipping, sometimes it is not.
I need to detect when it is clipping. I guess this probably depends on the intensity of the clipping and the variance of the noise, but I am clueless on the type of "online" algorithms that could do that.
In the figure, my goal is to be able to distinguish between the sampled signal and the clipped sample signal in an online fashion.

