spectrochempy.NNLS¶
- class NNLS(**kwargs)[source]¶
Least-squares solution to a linear matrix equation with non-negativity constraints.
This is a wrapper to the
scipy.optimize.nnls`
function.- Parameters
*datasets (one or two |NDDataset|’s or array-like objects) – If a single dataset
Y
is provided, theX
data will be thex
coordinates of theY
dataset, or the index of the data if not coordinates exists. If two datasetsX
, andY
are given, thex
coordinates ofY
are ignored and replaced by theX
data.maxiter (int, optional) – Maximum number of iterations, optional. Default is
3 * X.shape
.
Methods
Return the reconstructed data from the A and B least-square coefficients.
Return the reconstructed data from the A and B least-square coefficients.
Return the least square coefficients A and B.
Return the least square coefficients A and B.