satlas.profiles.Voigt¶
-
class
satlas.profiles.Voigt(fwhm=None, mu=None, amp=None, ampIsArea=False)[source]¶ A callable normalized Voigt profile.
-
__init__(fwhm=None, mu=None, amp=None, ampIsArea=False)[source]¶ Creates a callable object storing the fwhm, amplitude and location of a Voigt lineshape.
Parameters: - fwhm (float) – Full Width At Half Maximum, defaults to 1.
- mu (float) – Location of the center, defaults to 0.
- amp (float) – Amplitude of the profile, defaults to 1.
- ampIsArea (boolean) – Sets if the amplitude is the integral or the peakheight. Defaults to False.
Returns: Callable instance, evaluates the Voigt profile in the arguments supplied.
Return type:
-
__call__(x)[source]¶ Evaluates the lineshape in the given values.
Parameters: vals (array_like) – Array of values to evaluate the lineshape in. Returns: Array of seperate response values of the lineshape. Return type: array_like Note
The formula used is taken from the Wikipedia webpage http://en.wikipedia.org/wiki/Voigt_profile, with
the Faddeeva
function, and the values supplied as FWHM are appropriately transformed to
and
:![V\left(x;\mu, \sigma, \gamma\right) &= \frac{\Re\left[w\left(z\right)
\right]}{\sigma\sqrt{2\pi}}
z&=\frac{x+i\gamma}{\sigma\sqrt{2\pi}}](../_images/math/15699bfbaadb168322a41c2d0200f3418f402d57.png)
Methods
__init__([fwhm, mu, amp, ampIsArea])Creates a callable object storing the fwhm, amplitude and location of a Voigt lineshape. Attributes
ampPeak amplitude. ampIsAreaBoolean controlling the behaviour of amp. fwhmFWHM of the peak. muLocation of the peak. -