lumispy.components
Analytical convolution of Gaussian instrument response function and exponential decay function. |
|
Analytical convolution of Gaussian instrument response function and two exponential decay functions. |
Module containing model components defined in LumiSpy.
- class lumispy.components.ConvGaussExp(height=1.0, t0=0.0, sigma=10.0, tau=100.0, module=['numpy', 'scipy'], **kwargs)
Analytical convolution of Gaussian instrument response function and exponential decay function.
\[f(x) = \frac{h}{2} \cdot \exp\left[\frac{\sigma^2}{2\tau^2} - \frac{x - t_0}{\tau}\right] \cdot \left[\operatorname{erfc}\left(\frac{\sigma^2 - \tau(x - t_0)}{\sqrt{2}\sigma\tau}\right)\right]\]Variable
Parameter
\(h\)
height
\(t_0\)
t0
\(\sigma\)
sigma
\(\tau\)
tau
- Parameters:
height (float) – Height parameter.
t0 (float) – Location parameter.
sigma (float) – Scale (width) parameter of the Gaussian distribution.
tau (float) – Decay parameter (lifetime) of the exponential function.
**kwargs – Extra keyword arguments that are passed to the
hyperspy._components.expression.Expressioncomponent.
- fwhm
Convenience attribute to get and set the full width at half maximum.
- Type:
float
- A
Convenience attribute to get and set the area and defined for compatibility with Gaussian component.
- Type:
float
- class lumispy.components.ConvGaussTwoExp(height1=1.0, height2=1.0, t0=0.0, sigma=10.0, tau1=100.0, tau2=80.0, module=['numpy', 'scipy'], **kwargs)
Analytical convolution of Gaussian instrument response function and two exponential decay functions.
\[f(x) = \frac{h_1}{2} \cdot \exp\left[\frac{\sigma^2}{2\tau^2_1} - \frac{x - t_0}{\tau_1}\right] \cdot \left[\operatorname{erfc}\left(\frac{\sigma^2 - \tau_1(x - t_0)}{\sqrt{2}\sigma\tau_1}\right)\right] + \frac{h_2}{2} \cdot \exp\left[\frac{\sigma^2}{2\tau^2_2} - \frac{x - t_0}{\tau_2}\right] \cdot \left[\operatorname{erfc}\left(\frac{\sigma^2 - \tau_2(x - t_0)}{\sqrt{2}\sigma\tau_2}\right)\right]\]Variable
Parameter
\(h_1\)
height1
\(h_2\)
height2
\(t_0\)
t0
\(\sigma\)
sigma
\(\tau_1\)
tau1
\(\tau_2\)
tau2
- Parameters:
height1 (float) – Height parameter of the first exponential.
height2 (float) – Height parameter of the second exponential.
t0 (float) – Location parameter.
sigma (float) – Scale (width) parameter of the Gaussian distribution.
tau1 (float) – Decay parameter (lifetime) of the first exponential function.
tau2 (float) – Decay parameter (lifetime) of the second exponential function.
**kwargs – Extra keyword arguments that are passed to the
hyperspy._components.expression.Expressioncomponent.
- fwhm
Convenience attribute to get and set the full width at half maximum.
- Type:
float
- A
Convenience attribute to get and set the area and defined for compatibility with Gaussian component.
- Type:
float