Thank you for your advice!
I am a little bit confused about your method.
First, why it need to be normalized?
Second, what do you mean a sine function of the frequency? for example, I want to examine 1Hz, so the function is sin(2*pi*1*t)????
Thanks again!