aboutsummaryrefslogtreecommitdiffstats
path: root/statistics/cstat.hpp
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-25 15:35:07 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-25 15:35:07 +0000
commitde2b4bb23bf8e10e2a8e98e6455a0f305d61ba60 (patch)
tree65a61a982443329c1f7a101e835482645b8a92d0 /statistics/cstat.hpp
parent6d037d5c5b4c1c855c407e68d2e59965e4dcf67b (diff)
downloadopt-utilities-de2b4bb23bf8e10e2a8e98e6455a0f305d61ba60.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@29 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'statistics/cstat.hpp')
-rw-r--r--statistics/cstat.hpp6
1 files changed, 3 insertions, 3 deletions
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)