calculate_damped_oscillation_matrix_gaussian_irf

glotaran.builtin.megacomplexes.damped_oscillation.damped_oscillation_megacomplex.calculate_damped_oscillation_matrix_gaussian_irf(frequencies: ndarray, rates: ndarray, model_axis: ndarray, center: float, width: float, shift: float, scale: float)[source]

Calculate the damped oscillation matrix taking into account a gaussian irf

Parameters:
  • frequencies (np.ndarray) – an array of frequencies in THz, one per oscillation

  • rates (np.ndarray) – an array of rates, one per oscillation

  • model_axis (np.ndarray) – the model axis (time)

  • center (float) – the center of the gaussian IRF

  • width (float) – the width (σ) parameter of the the IRF

  • shift (float) – a shift parameter per item on the global axis

  • scale (float) – the scale parameter to scale the matrix by

Returns:

An array of the real and imaginary part of the oscillation matrix, the shape being (len(model_axis), 2*len(frequencies)), with the first half of the second dimension representing the real part, and the other the imagine part of the oscillation

Return type:

np.ndarray