Skip to content

Commit 1ca0842

Browse files
committed
corrected sign error in estimation of y coordinates
1 parent 227d2ca commit 1ca0842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/python/cni_tlbx/HGR.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def get_parameters(self, n_batch = 10000,
263263
cx = np.floor(pos / self.r_stimulus)
264264
cy = pos % self.r_stimulus
265265
results['mu_x'][batch] = cx / self.r_stimulus * max_radius * 2 - max_radius
266-
results['mu_y'][batch] = -cy / self.r_stimulus * max_radius * 2 - max_radius
266+
results['mu_y'][batch] = -(cy / self.r_stimulus * max_radius * 2 - max_radius)
267267
R = np.sqrt(results['mu_x'][batch]**2 + results['mu_y'][batch]**2)
268268
P = np.hstack((m_image.reshape(-1,1), R.reshape(-1,1)))
269269
results['sigma'][batch] = np.matmul(P, beta)

0 commit comments

Comments
 (0)