sin_fit

tessilator.lc_analysis.sin_fit(x, y0, A, phi)[source]

Returns the best parameters (y_offset, amplitude, and phase) to a regular sinusoidal function.

Parameters:
xIterable

list of input values

y0float

The midpoint of the sine curve

Afloat

The amplitude of the sine curve

phifloat

The phase angle of the sine curve

Returns:
sin_fitlist

A list of sin curve values.