@@ -123,18 +123,18 @@ def __init__(self):
123123 """
124124
125125
126- class Constant (Regularization ):
126+ class instance (Regularization ):
127127 def __init__ (self , coefficient = 1.0 ):
128- """A constant -regularization scheme (regularization is described in the *Regularization* class above).
128+ """A instance -regularization scheme (regularization is described in the *Regularization* class above).
129129
130- For the constant regularization_matrix scheme, there is only 1 regularization coefficient that is applied to \
130+ For the instance regularization_matrix scheme, there is only 1 regularization coefficient that is applied to \
131131 all neighboring pixels. This means that we when write B, we only need to regularize pixels in one direction \
132132 (e.g. pixel 0 regularizes pixel 1, but NOT visa versa). For example:
133133
134134 B = [-1, 1] [0->1]
135135 [0, -1] 1 does not regularization with 0
136136
137- A small numerical value of 1.0e-8 is added to all elements in a constant regularization matrix, to ensure that \
137+ A small numerical value of 1.0e-8 is added to all elements in a instance regularization matrix, to ensure that \
138138 it is positive definite.
139139
140140 Parameters
@@ -143,13 +143,13 @@ def __init__(self, coefficient=1.0):
143143 The regularization coefficient which controls the degree of smooth of the inversion reconstruction.
144144 """
145145 self .coefficient = coefficient
146- super (Constant , self ).__init__ ()
146+ super (instance , self ).__init__ ()
147147
148148 def regularization_weights_from_mapper (self , mapper ):
149149 return self .coefficient * np .ones (mapper .pixelization_grid .pixels )
150150
151151 def regularization_matrix_from_mapper (self , mapper ):
152- return regularization_util .constant_regularization_matrix_from_pixel_neighbors (
152+ return regularization_util .instance_regularization_matrix_from_pixel_neighbors (
153153 coefficient = self .coefficient ,
154154 pixel_neighbors = mapper .pixelization_grid .pixel_neighbors ,
155155 pixel_neighbors_size = mapper .pixelization_grid .pixel_neighbors_size ,
@@ -158,20 +158,20 @@ def regularization_matrix_from_mapper(self, mapper):
158158
159159class AdaptiveBrightness (Regularization ):
160160 def __init__ (self , inner_coefficient = 1.0 , outer_coefficient = 1.0 , signal_scale = 1.0 ):
161- """ A constant -regularization scheme (regularization is described in the *Regularization* class above).
161+ """ A instance -regularization scheme (regularization is described in the *Regularization* class above).
162162
163163 For the weighted regularization scheme, each pixel is given an 'effective regularization weight', which is \
164164 applied when each set of pixel neighbors are regularized with one another. The motivation of this is that \
165165 different regions of a pixelization require different levels of regularization (e.g., high smoothing where the \
166166 no signal is present and less smoothing where it is, see (Nightingale, Dye and Massey 2018)).
167167
168- Unlike the constant regularization_matrix scheme, neighboring pixels must now be regularized with one another \
168+ Unlike the instance regularization_matrix scheme, neighboring pixels must now be regularized with one another \
169169 in both directions (e.g. if pixel 0 regularizes pixel 1, pixel 1 must also regularize pixel 0). For example:
170170
171171 B = [-1, 1] [0->1]
172172 [-1, -1] 1 now also regularizes 0
173173
174- For a constant regularization coefficient this would NOT produce a positive-definite matrix. However, for
174+ For a instance regularization coefficient this would NOT produce a positive-definite matrix. However, for
175175 the weighted scheme, it does!
176176
177177 The regularize weights change the B matrix as shown below - we simply multiply each pixel's effective \
0 commit comments