exp_conv

TRXASprefitpack.mathfun.exp_conv(t: ndarray, fwhm: float, tau: ndarray, c: ndarray, base: Optional[bool] = True, irf: Optional[str] = 'g', eta: Optional[float] = None) ndarray[source]

Constructs the model for the convolution of n exponential and instrumental response function Supported instrumental response function are

  • g: gaussian distribution

  • c: cauchy distribution

  • pv: pseudo voigt profile

Parameters
  • t – time

  • fwhm – full width at half maximum of instrumental response function

  • tau – life time for each component

  • c – coefficient for each component

  • base – whether or not include baseline [default: True]

  • irf

    shape of instrumental response function [default: g]

    • ’g’: normalized gaussian distribution,

    • ’c’: normalized cauchy distribution,

    • ’pv’: pseudo voigt profile \((1-\eta)g(t, {fwhm}) + \eta c(t, {fwhm})\)

  • eta – mixing parameter for pseudo voigt profile (only needed for pseudo voigt profile)

Returns

Convolution of the sum of n exponential decays and instrumental response function.

Note

Size of weight c is num_comp+1 when base is set to true. Otherwise, its size is num_comp.