residual_nnls

glotaran.optimization.nnls.residual_nnls(matrix: numpy.ndarray, data: numpy.ndarray) Tuple[numpy.ndarray, numpy.ndarray][source]

Calculate the conditionally linear parameters and residual with the nnls method.

nnls stands for ‘non-negative least-squares’.

Parameters
  • matrix – The model matrix.

  • data (np.ndarray) – The data to analyze.