ibex_bluesky_core.callbacks.fitting.fitting_utils

Defines the standard fits. The model and guess functions for each fit.

Members

DampedOsc

Damped Oscillator Fitting.

ERF

Error Function Fitting.

ERFC

Complementary Error Function Fitting.

Fit

Base class for all fits.

Gaussian

Gaussian Fitting.

Linear

Linear Fitting.

Lorentzian

Lorentzian Fitting.

Polynomial

Polynomial Fitting.

SlitScan

Slit Scan Fitting.

TopHat

Top Hat Fitting.

Trapezoid

Trapezoid Fitting.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.DampedOsc[source]

Bases: Fit

Damped Oscillator Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Damped Oscillator Guessing.

classmethod model(*args: int) Model[source]

Damped Oscillator Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.ERF[source]

Bases: Fit

Error Function Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Error Function Guessing.

classmethod model(*args: int) Model[source]

Error Function Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.ERFC[source]

Bases: Fit

Complementary Error Function Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Complementary Error Function Guessing.

classmethod model(*args: int) Model[source]

Complementary Error Function Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.Fit[source]

Bases: ABC

Base class for all fits.

classmethod fit(*args: int) FitMethod[source]

Return a FitMethod given model and guess functions to pass to LiveFit.

abstract classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Outline base Guessing. method.

Parameters:

*args (int) – Any extra parameters required for fitting.

Returns:

Guess function (x-values: NDArray, y-values: NDArray -> parameters: Dict[str, lmfit.Parameter])

Return type:

Callable

abstract classmethod model(*args: int) Model[source]

Outline base model function.

Parameters:

*args (int) – Any extra parameters required for fitting.

Returns:

Model function (x-values: NDArray, parameters: np.float64 -> y-values: NDArray)

Return type:

lmfit.Model

class ibex_bluesky_core.callbacks.fitting.fitting_utils.Gaussian[source]

Bases: Fit

Gaussian Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Gaussian Guessing.

classmethod model(*args: int) Model[source]

Gaussian Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.Linear[source]

Bases: Fit

Linear Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Linear Guessing.

classmethod model(*args: int) Model[source]

Linear Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.Lorentzian[source]

Bases: Fit

Lorentzian Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Lorentzian Guessing.

classmethod model(*args: int) Model[source]

Lorentzian Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.Polynomial[source]

Bases: Fit

Polynomial Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Polynomial Guessing.

classmethod model(*args: int) Model[source]

Polynomial Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.SlitScan[source]

Bases: Fit

Slit Scan Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Slit Scan Guessing.

classmethod model(*args: int) Model[source]

Slit Scan Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.TopHat[source]

Bases: Fit

Top Hat Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Top Hat Guessing.

classmethod model(*args: int) Model[source]

Top Hat Model.

class ibex_bluesky_core.callbacks.fitting.fitting_utils.Trapezoid[source]

Bases: Fit

Trapezoid Fitting.

classmethod guess(*args: int) Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], dict[str, Parameter]][source]

Trapezoid Guessing.

classmethod model(*args: int) Model[source]

Trapezoid Model.