1D Gaussian fit
Fits a Gaussian to each frame of 1D data in a data stream and publishes the fit parameters and fitted curve.
Overview
quatm/analysis/gaussfit.py provides 1D Gaussian fit analysis (Gaussfit): as a standalone analysis process it subscribes to data streams, fits a Gaussian to each frame of 1D data and publishes the results to the data stream.
The fit function has the form:
f(x) = A0 / (sqrt(2*pi) * sigma) * exp(-(x - pos)^2 / (2*sigma^2)) + offset
The output parameters are A0 (area), sigma (width), pos (center), offset (background) and height (peak height = A0/(sqrt(2π)·σ)).
Configuration properties
| Property | Description |
|---|---|
datastreams | List of input data streams (each frame may be a 1D array, or a 2D array with two rows x/y) |
Usage
from quatm.analysis.gaussfit import Gaussfit
gf = Gaussfit(name="gauss") # name serves as the property/data-stream namespace
gf.run()
The analysis process is started from the Analysis Manager (AnalysisManager), where it is selected with a checkbox; input streams and parameters are configured in the property tree.