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.Expression

Normalized 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]

Variable

Parameter

A

A

s_x,s_y

sigma_x/y

x_0,y_0

centre_x/y

Parameters
  • A (float) – Amplitude (height of the peak scaled by 2 \pi s_x s_y).

  • 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