For example, in the attachment, I have obtained the "smooth" data of the second column by drawing the smooth line formula of the first column.
The effect of increased "smooth" is to determine the most appropriate sine wave period by repeatedly crossing the two curves.
Of course, the original curve change is completely random, so it can only be required that the fitted sine wave can achieve the maximum satisfaction (sine wave is just a fixed pattern).
Like a sine wave in the picture.
(This image is implemented in python.)
Thanks Experts!
