hyperspy._components.gaussian2d module¶
-
class
hyperspy._components.gaussian2d.Gaussian2D(A=1.0, sigma_x=1.0, sigma_y=1.0, centre_x=0.0, centre_y=0, module='numexpr', **kwargs)¶ Bases:
hyperspy._components.expression.ExpressionNormalized 2D elliptical Gaussian function component.
![f(x,y) = \frac{A}{2\pi s_x s_y}\exp\left[-\frac{\left(x-x_0\right)
^{2}}{2s_{x}^{2}}\frac{\left(y-y_0\right)^{2}}{2s_{y}^{2}}\right]](../_images/math/d34bea51af54c3fc9cdb15a017ae77ad66a7b350.png)
Variable
Parameter

A

sigma_x/y

centre_x/y
- Parameters
A (float) – Amplitude (height of the peak scaled by
).sigma_x (float) – Width (scale parameter) of the Gaussian distribution in x direction.
sigma_y (float) – Width (scale parameter) of the Gaussian distribution in y direction.
centre_x (float) – Location of the Gaussian maximum (peak position) in x direction.
centre_x – Location of the Gaussian maximum (peak position) in y direction.
For convenience the fwhm_x and fwhm_y attributes can be used to get and set the full-with-half-maxima along the two axes.
-
property
fwhm_x¶
-
property
fwhm_y¶