mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 08:49:28 +02:00
Bugfix for covobs, fit tests for covobs added
This commit is contained in:
parent
950fb17c84
commit
359c9c06da
3 changed files with 68 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue