Given at least 3 points $(x_{i}, y_{i})$, how to confirm if all points lie on a sine wave? Or alternatively, how to determine the parameters of a sine wave that best fits the data (I'm guessing amplitude and phase would be sufficient?).
Context: I am processing images and attempting to identify sinusoidal features within a rock face programmatically. I'm able to identify these as well as other features using edge detection. I'm now trying to isolate the sinusoidal features. I have a number of ideas of how to do this, the above idea would likely be the least computationally intensive but I've no idea hoe to go about it.

