From b83ba2fcaff13474f77d2ade0b573d0b4ca2fc3b Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Wed, 8 Apr 2009 08:50:51 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@22 ed2142bd-67ad-457f-ba7c-d818d4011675 --- statistics/chisq.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'statistics') diff --git a/statistics/chisq.hpp b/statistics/chisq.hpp index 66a7a70..ed25051 100644 --- a/statistics/chisq.hpp +++ b/statistics/chisq.hpp @@ -107,6 +107,7 @@ namespace opt_utilities #ifdef HAVE_X_ERROR Tx x1=this->datas().get_data(i).get_x()-this->datas().get_data(i).get_x_lower_err(); Tx x2=this->datas().get_data(i).get_x()+this->datas().get_data(i).get_x_upper_err(); + Tx x=this->datas().get_data(i).get_x()+this->datas().get_data(i).get_x(); Ty errx1=(eval_model(x1,p)-eval_model(x,p)); Ty errx2=(eval_model(x2,p)-eval_model(x,p)); //Ty errx=0; -- cgit v1.2.2