calculate_residual

EstimationProvider.calculate_residual(matrix: ArrayLike, data: ArrayLike) tuple[ArrayLike, ArrayLike][source]

Calculate the clps and the residual for a matrix and data.

Parameters:
  • matrix (ArrayLike) – The matrix.

  • data (ArrayLike) – The data.

Returns:

The estimated clp and residual.

Return type:

tuple[ArrayLike, ArrayLike]