hyperspy._components.exponential module

class hyperspy._components.exponential.Exponential(A=1.0, tau=1.0, module='numexpr', **kwargs)

Bases: Expression

Exponential function component.

\[f(x) = A\cdot\exp\left(-\frac{x}{\tau}\right)\]

Variable

Parameter

\(A\)

A

\(\tau\)

tau

Parameters:
  • A (float) – Maximum intensity

  • tau (float) – Scale parameter (time constant)

  • **kwargs – Extra keyword arguments are passed to the Expression component.

estimate_parameters(signal, x1, x2, only_current=False)

Estimate the parameters for the exponential component by splitting the signal window into two regions and using their geometric means

Parameters:
  • signal (BaseSignal instance) –

  • x1 (float) – Defines the left limit of the spectral range to use for the estimation.

  • x2 (float) – Defines the right limit of the spectral range to use for the estimation.

  • only_current (bool) – If False estimates the parameters for the full dataset.

Return type:

bool