residual_nnls
- glotaran.optimization.nnls.residual_nnls(matrix: ArrayLike, data: ArrayLike) tuple[ArrayLike, ArrayLike] [source]
Calculate the conditionally linear parameters and residual with the NNLS method.
NNLS stands for ‘non-negative least-squares’.
- Parameters:
matrix (ArrayLike) – The model matrix.
data (ArrayLike) – The data to analyze.
- Returns:
The clps and the residual.
- Return type:
tuple[ArrayLike, ArrayLike]