sin_fit_per

tessilator.lc_analysis.sin_fit_per(t, y0, A, per, phi)[source]

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

Parameters:
tIterable

list of input values

y0float

The midpoint of the sine curve

Afloat

The amplitude of the sine curve

perfloat

The period of the sine curve

phifloat

The phase angle of the sine curve

Returns:
sin_fit_perlist

A list of sin curve values.