Returns the best parameters (y_offset, amplitude, and phase) to a regular
sinusoidal function.
- Parameters:
- x
Iterable list of input values
- y0
float The midpoint of the sine curve
- A
float The amplitude of the sine curve
- phi
float The phase angle of the sine curve
- Returns:
- sin_fit
list A list of sin curve values.