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 :

region : ndarray

Region to fit.

ls_classes : list

List of lineshape classes.

p0 : ndarray

Initial parameters.

p_bounds : list of tuples

List of (min, max) bounds for each element of p0.

n_peaks : int

Number of peaks in the simulated region.

wmask : ndarray

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.

**kw : optional

Additional keywords passed to the scipy.optimize.leastsq function.

See also

fit_NDregion
Fit N-dimensional region with user friendly parameter.

Previous topic

nmrglue.analysis.linesh.err_NDregion

Next topic

nmrglue.peakpick

This Page