diff options
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)
{
|