From de2b4bb23bf8e10e2a8e98e6455a0f305d61ba60 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sat, 25 Apr 2009 15:35:07 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@29 ed2142bd-67ad-457f-ba7c-d818d4011675 --- statistics/cstat.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'statistics/cstat.hpp') diff --git a/statistics/cstat.hpp b/statistics/cstat.hpp index b6b401d..ce8469e 100644 --- a/statistics/cstat.hpp +++ b/statistics/cstat.hpp @@ -35,10 +35,10 @@ namespace opt_utilities Ts do_eval(const Tp& p) { Ts result(0); - for(int i=(this->datas()).size()-1;i>=0;--i) + for(int i=(this->get_data_set()).size()-1;i>=0;--i) { - Ty model_y=eval_model(this->datas().get_data(i).get_x(),p); - result+=model_y-this->datas().get_data(i).get_y()*log(model_y)+lnfrac(this->datas().get_data(i).get_y()); + Ty model_y=eval_model(this->get_data_set().get_data(i).get_x(),p); + result+=model_y-this->get_data_set().get_data(i).get_y()*log(model_y)+lnfrac(this->get_data_set().get_data(i).get_y()); } if(verb) -- cgit v1.2.2