Bugfix for covobs, fit tests for covobs added

This commit is contained in:
Simon Kuberski 2021-11-30 13:32:50 +01:00
parent 950fb17c84
commit 359c9c06da
3 changed files with 68 additions and 17 deletions

View file

@ -41,7 +41,7 @@ class Covobs:
raise Exception('Have to specify position of cov-element belonging to mean!')
else:
if pos > self.N:
raise Exception('pos %d too large for covariance matrix with dimension %dx%d!' % (pos, self.N, self.N))
raise Exception('pos %d too large for covariance matrix with dimension %dx%d!' % (pos, self.N, self.N))
self.grad = np.zeros((self.N, 1))
self.grad[pos] = 1.
else: