From 29ab5007a77e7e417410224e543a5a03e66a5095 Mon Sep 17 00:00:00 2001 From: pbrod Date: Mon, 27 Jun 2016 10:41:11 +0200 Subject: [PATCH] Fixed a bug on comput_cov --- wafo/stats/estimation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafo/stats/estimation.py b/wafo/stats/estimation.py index 0555957..8f964a0 100644 --- a/wafo/stats/estimation.py +++ b/wafo/stats/estimation.py @@ -1266,9 +1266,9 @@ class FitDistribution(rv_frozen): else: pcov = -pinv2(H[self.i_notfixed, :][..., self.i_notfixed]) for row, ix in enumerate(list(self.i_notfixed)): - self.par_cov[ix, self.i_notfixed] = pcov[row, :] + par_cov[ix, self.i_notfixed] = pcov[row, :] else: - self.par_cov = -pinv2(H) + par_cov = -pinv2(H) except: par_cov[:, :] = nan return par_cov