diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-10-16 12:03:14 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-10-16 12:03:14 +0000 |
commit | a0d3b74adcc29c22d70da971621dd301727eb695 (patch) | |
tree | 78435ae01f83769a678eeb550fb74ce512650fd9 /statistics | |
parent | 0c1f50351a0287252c4b0f7e9edbfb945481e6f7 (diff) | |
download | opt-utilities-a0d3b74adcc29c22d70da971621dd301727eb695.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@81 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'statistics')
-rw-r--r-- | statistics/chisq.hpp | 11 | ||||
-rw-r--r-- | statistics/leastsq.hpp | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/statistics/chisq.hpp b/statistics/chisq.hpp index acc9e66..54826d5 100644 --- a/statistics/chisq.hpp +++ b/statistics/chisq.hpp @@ -36,6 +36,12 @@ namespace opt_utilities // return const_cast<statistic<Ty,Tx,Tp>*>(this);
return new chisq<Ty,Tx,Tp,Ts,Tstr>(*this);
}
+
+ const char* do_get_type_name()const
+ {
+ return "chi^2 statistic";
+ }
+
public:
void verbose(bool v)
{
@@ -99,7 +105,10 @@ namespace opt_utilities return new chisq<Ty,Tx,Tp,Ts,Tstr>(*this);
}
-
+ const char* do_get_type_name()const
+ {
+ return "chi^2 statistics (specialized for double)";
+ }
public:
void verbose(bool v)
{
diff --git a/statistics/leastsq.hpp b/statistics/leastsq.hpp index abaaf1c..6ff3b62 100644 --- a/statistics/leastsq.hpp +++ b/statistics/leastsq.hpp @@ -36,6 +36,12 @@ namespace opt_utilities // return const_cast<statistic<Ty,Tx,Tp>*>(this);
return new leastsq<Ty,Tx,Tp,Ts,Tstr>(*this);
}
+
+ const char* do_get_type_name()const
+ {
+ return "least square statistic";
+ }
+
public:
void verbose(bool v)
{
|