nmrglue.analysis.linesh.f_NDregion
- nmrglue.analysis.linesh.f_NDregion(region, ls_classes, p0, p_bounds, n_peaks, wmask, **kw)[source]
Fit an N-dimensional regions containing one or more peaks.
Region is fit using a contrained Levenberg-Marquard optmization algorithm. See
fit_NDregion()
for additional documentation.- Parameters
- regionndarray
Region to fit.
- ls_classeslist
List of lineshape classes.
- p0ndarray
Initial parameters.
- p_boundslist of tuples
List of (min, max) bounds for each element of p0.
- n_peaksint
Number of peaks in the simulated region.
- wmaskndarray
Array with same shape as region which is used to weight points in the error calculation, typically a boolean array is used to exclude certain points in the region.
- **kwoptional
Additional keywords passed to the scipy.optimize.leastsq function.
See also
fit_NDregion
Fit N-dimensional region with user friendly parameter.