skultrafast.lmfit_models

This module contains the lmfit models used in the fitting of the data.

Classes

AmpGaussian

A Gaussian model with amplitude as a parameter.

AmpLorentzian

A Lorentzian model with amplitude as a parameter.

Functions

amp_gauss(x, A, xc, fhwm)

Gaussian function with amplitude A, center xc and full width at half

amp_lorentz(x, A, xc, fhwm)

Lorentzian function with amplitude A, center xc and full width at half

Module Contents

skultrafast.lmfit_models.amp_gauss(x, A, xc, fhwm)[source]

Gaussian function with amplitude A, center xc and full width at half maximum fhwm.

Parameters:
  • x (array) – Independent variable

  • A (float) – Amplitude of the Gaussian

  • xc (float) – Center of the Gaussian

  • fhwm (float) – Full width at half maximum

Returns:

The Gaussian function

Return type:

array

skultrafast.lmfit_models.amp_lorentz(x, A, xc, fhwm)[source]

Lorentzian function with amplitude A, center xc and full width at half maximum fhwm.

Parameters:
  • x (array) – Independent variable

  • A (float) – Amplitude of the Lorentzian

  • xc (float) – Center of the Lorentzian

  • fhwm (float) – Full width at half maximum

Returns:

The Lorentzian function

Return type:

array

class skultrafast.lmfit_models.AmpGaussian(*args, **kwargs)[source]

Bases: lmfit.Model

A Gaussian model with amplitude as a parameter.

guess(data, x, **kws)[source]

Guess the initial values of the parameters.

Parameters:
  • data (array) – The data to fit

  • x (array) – The independent variable

Returns:

The initial values of the parameters

Return type:

lmfit.Parameters

class skultrafast.lmfit_models.AmpLorentzian(*args, **kwargs)[source]

Bases: lmfit.Model

A Lorentzian model with amplitude as a parameter.

guess(data, x, **kws)[source]

Guess the initial values of the parameters.

Parameters:
  • data (array) – The data to fit

  • x (array) – The independent variable

Returns:

The initial values of the parameters

Return type:

lmfit.Parameters