We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93790d0 commit 2f02d88Copy full SHA for 2f02d88
code/python/cni_toolbox/HGR.py
@@ -394,6 +394,15 @@ def __create_gamma__(self):
394
self.gamma = np.zeros((self.n_pixels, self.n_features))
395
pix_id = np.linspace(0, self.n_pixels, self.n_features * self.n_gaussians)
396
397
+ x = np.floor(pix_id / self.r_stimulus)
398
+ y = pix_id % self.r_stimulus
399
+
400
+ for i in range self.n_features:
401
+ for j in range self.n_gaussians:
402
+ self.gamma[:,i] += gaussian(x[i * n_gaussians + j],
403
+ y[i * n_gaussians + j], sigma, x_coordinates, y_coordinates)
404
405
+ self.gamma[:, i] /= np.sum(self.gamma[:, i])
406
407
408
def __convolution__(self, x):
0 commit comments