Why would you want to pass through as many points as possible? Surely you would want to do something like a fourier transform?
Incidentally, that will tell you how close it is to a sine wave, an how close it is to that frequency.
But it sure sounds like homework.