spectrochempy.NNMF.nmf¶
- NNMF.nmf(V, Winit, Hinit, tol, maxtime, maxiter)[source]¶
NMF by alternative non-negative least squares using projected gradients.
- Parameters
V (|ndarray|) – numpy array to be analysed
Winit,Hinit (|ndarray|) – Initial solutions for concentration and spectral profile..
tol (float) – Tolerance for a relative stopping condition.
maxtime (float) – Limit of time.
maxiter (int) – Limit number for iterations.
- Returns
W,H (|ndarray|) – Output solution.