dem_reg_map#

demregpy.dem_reg_map(sigmaa, sigmab, U, W, data, err, reg_tweak, nmu=500)[source]#

Select the regularization parameter from a GSVD solution.

Parameters:
  • sigmaa (array_like) – GSVD alpha singular values.

  • sigmab (array_like) – GSVD beta singular values.

  • U (ndarray) – GSVD U matrix.

  • W (ndarray) – GSVD W matrix. Unused.

  • data (array_like) – Data vector in the weighted space used by the inversion.

  • err (array_like) – Uncertainty vector corresponding to data.

  • reg_tweak (float) – Target chi-squared scaling used when choosing the regularization parameter.

  • nmu (int, optional) – Number of candidate regularization parameters to sample.

Returns:

Selected regularization parameter.

Return type:

float