fact_anal_rate_eq_conv¶
- TRXASprefitpack.mathfun.fact_anal_rate_eq_conv(t: ndarray, fwhm: float, eigval: ndarray, V: ndarray, c: ndarray, exclude: Optional[str] = None, irf: Optional[str] = 'g', eta: Optional[float] = None, intensity: Optional[ndarray] = None, eps: Optional[ndarray] = None) ndarray[source]¶
Estimate the best coefficiets when full width at half maximum fwhm and eigenvector and eigenvalue of rate equation matrix are given
Supported instrumental response functions are
‘g’: gaussian distribution
‘c’: cauchy distribution
‘pv’: pseudo voigt profile
- Parameters
t – time
fwhm – full width at half maximum of instrumental response function
eigval – eigenvalue of rate equation matrix
V – eigenvector of rate equation matrix
c – coefficient to match initial condition of rate equation
exclude –
exclude either ‘first’ or ‘last’ element or both ‘first’ and ‘last’ element.
’first’ : exclude first element
’last’ : exclude last element
’first_and_last’ : exclude both first and last element
None : Do not exclude any element [default]
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)
intensity – intensity of time scan data to fit
eps – standard error of data
- Returns
Best coefficient for each component.
Note
eigval, V, c should be obtained from solve_model
The dimension of the intensity should be one.