exa.core.model_selection_fitter.models.sine_expansion_model.sine_expansion

Contents

exa.core.model_selection_fitter.models.sine_expansion_model.sine_expansion#

sine_expansion(t, A, f, phi, offset, T_exp=inf, T_gauss=inf)#

Returns the first-order Taylor expansion for sine model with decay.

The parameters of the model are the same as in GaussExpSineModel.

f(t) = A*sin(2*pi*f*t + phi)*exp(-t/T_exp - t**2/T_exp**2) + offset f^{(1)}(t) = f(0) + df(t)/dt*t|t=0

Parameters:
  • t (ndarray) – Time coordinate.

  • A (float) – Amplitude.

  • f (float) – Frequency.

  • phi (float) – Phase.

  • offset (float) – Offset.

  • T_exp (float) – Exponential decay time.

  • T_gauss (float) – Gaussian decay time.

Returns:

The first-order Taylor expansion of a sinusoid.

Return type:

ndarray