jaxrts.instrument_function.SuperGaussian.__init__

SuperGaussian.__init__(power, sigma: Quantity | None = None, fwhm: Quantity | None = None)[source]

Supergaussian instrument function

\[\exp\left(-\left(\frac{x^2}{2\sigma^2}\right)^p\right)\]

Note

The function is normalized by numerical integration

Parameters:
  • power (float) – The exponent p in above equation.

  • sigma (Quantity, optional) – The parameter sigma (must be given in units of energy or frequency.

  • fwhm (Quantity, optional) – The full width half maximum of the distribution.

Raises:

TypeError if neither sigma nor fwhm are given. –