Multiple auto-generated lorentzian/gaussian peak Fit
- asymmetric lorentzian:
- symmetric lorentzian:
- asymmetric gaussian:
, where
- symmetric gaussian:
- M_data = [x_data, y_data] is the n-by-2 matrix containing the data to fit.
- nPeak = [# asym. lorentz, # sym. lorentz, # asym. gauss, # sym. gauss] is a 4 element array containing each individual number of peaks with the respective line shape to fit.
- StartPointNo is the suffix number of the startpoint file or an array containing the startpoints for the fit
- BGType = Type of spectral background. You may choose a preset from ('const', 'lin', 'Laser') or enter a Custumized background function. Default: 'const'.
- BGvars = If you insert a custumized background function, you have to enter the corresponding variables here. defaul = [ ].
- LaserParam = [nL, xL], specific Laser background params for exponent (nL) and position (xL). default: [2, 0].
- OutName = 'String', for usage of the same startpoint for multiple fit with different fit_contrib output files. default = "".
- ConfAlpha = 0...1, Fitting error confidence bounds. default: 0.95.
- xFit = [xFitMin, xFitMax, lxFit], bounds of x-array for fit evaluation via feval, which can be used for interpolation, and array size lxFit. default: [min(M_data(:,1)), max(M_data(:,1)), 2E3], which means an x-array from within [min(x_data), max(x_data)] with 2E3 points.
- CoeffFix = [CoeffIndx #1, CoeffIndx #2, ... , CoeffIndx #n], 1-by-n array to Fix any number n of coeficients. It contains the respective coefficient indices which are then fixed to the value given by the startpoint file or array.
- Subst_nPeak = nPeak for the substrate model. One may includes a substrate model by entering the correct number of peaks of the substrate and the respective (fixed!) parameters in the next option. default: []
- Subst_Params = [Param #1, ..., Param #n] Here you enter all parameters for the substrate model. Fit parameters for the substrate model are a total amplitude AS applied to all peaks equally and an x-axis shift dx. default: []
- FilterEdge = ['on'/'off'] enables the inclusion of a filteredge function F(x) = 1/(1 + exp((x-xFilter)/width)), which is multiplied with the whole fit function (including background and substrate). Therefore, it has not only Position and width as parameters, but also an additional y0 parameter for the background in the filter blocking spectral region. In total there are 3 additional fit parameters for this option. default: 'off'
引用格式
Jona Grümbel (2025). Multiple auto-generated lorentzian/gaussian peak Fit (https://www.mathworks.com/matlabcentral/fileexchange/157871-multiple-auto-generated-lorentzian-gaussian-peak-fit), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
3.0.0 | Major revisions with significant simplifications
|
|
|
2.0.0 | Major imporvements for better handling, more robust execution, and additional options:
|
|
|
1.0.2 | nimor bug fixes & description changes |
|
|
1.0.1 | description changes |
|
|
1.0.0 |