autoarray.inversion.regularization.Constant#
- class autoarray.inversion.regularization.Constant(coefficient: float = 1.0)[source]#
- __init__(coefficient: float = 1.0)[source]#
A constant regularization scheme (regularization is described in the Regularization class above) which uses a single value to apply smoothing on the solution of an Inversion.
For this regularization scheme, there is only 1 regularization coefficient that is applied to all neighboring pixels. This means that the matrix B only needs to regularize pixels in one direction (e.g. pixel 0 regularizes pixel 1, but NOT visa versa). For example:
- B = [-1, 1] [0->1]
[0, -1] 1 does not regularization with 0
A small numerical value of 1.0e-8 is added to all elements in constant regularization matrix, to ensure that it is positive definite.
- Parameters
coefficient – The regularization coefficient which controls the degree of smooth of the inversion reconstruction.
Methods
__init__
([coefficient])A constant regularization scheme (regularization is described in the Regularization class above) which uses a single value to apply smoothing on the solution of an Inversion.
regularization_matrix_from
(mapper)regularization_weights_from
(mapper)