I juggle, and then track the juggling balls.
I want to describe this juggling trick using sine waves. A metronome was used to keep the throws periodic. The video is 120fps, so there are 120 observations per second. The Y-values correspond to the location of the ball in the image. The video is 800 pixles tall, so the Y-values range from about 200 to 600. This is a graph of (the data):
Using this Python/OpenCV script, was able to manually fit a sine wave to the data. The thick blue line is the source data. The thick green line is the manually fitted sine wave, which is composed of the two thinnest sine curves:
From manually fitting the sine wave, I know that this function is the sum of two sine waves. The period of the longer wave is 2x the period of the shorter wave. A FFT seems to confirm this:
In conclusion, I can describe this data by manually (visually) fitting a sine curve. I would like to use a mathematical and statistical methods to fit a sine curve to this data.
The data that I used in this example was pretty simple, but the juggling tricks can get more complicated: