Coursera Signal processing by EPFL says the function that represents the peaks are cosine by looking at the DFT of 1024 samples. But why on what basis it can be said so?
Now if you look in detail and what happens in the spectrum, we see that the peaks are for k equal to 64 and for k equal 960. We also see that the peaks appear only in the real part of the spectrum, and we remember them when this happens, the underlying sinusoid, the sinusoid represented by the peaks is a cosine
So from this simple visual inspection, we can write our signal as such (as below), there will be a cosine component and we will have to determine both the frequency and the initial phase of this cosine. And there will be other part that we can probably call a noise component the sense that doesn't have any structure.