aboutsummaryrefslogtreecommitdiffstats
path: root/statistics
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-08 08:50:51 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-08 08:50:51 +0000
commitb83ba2fcaff13474f77d2ade0b573d0b4ca2fc3b (patch)
treecc92d3e88565a077890ef473802475ec2bc638db /statistics
parent5d36501928944bdaf6e8ff13e85be48719509556 (diff)
downloadopt-utilities-b83ba2fcaff13474f77d2ade0b573d0b4ca2fc3b.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@22 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'statistics')
-rw-r--r--statistics/chisq.hpp1
1 files changed, 1 insertions, 0 deletions
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;