aboutsummaryrefslogtreecommitdiffstats
path: root/pre_estimater/pre_estimater.hpp
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-02-12 17:23:12 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-02-12 17:23:12 +0000
commitedc1fd182e0aca1c8e33788063f36be4e7e142fe (patch)
treeec77891919d04546b928b91345bcfe88e26dcf00 /pre_estimater/pre_estimater.hpp
parent42dafd9fa725a232be82f15a53e5ae0520d7bfc1 (diff)
downloadopt-utilities-edc1fd182e0aca1c8e33788063f36be4e7e142fe.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@173 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'pre_estimater/pre_estimater.hpp')
-rw-r--r--pre_estimater/pre_estimater.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/pre_estimater/pre_estimater.hpp b/pre_estimater/pre_estimater.hpp
new file mode 100644
index 0000000..db21e94
--- /dev/null
+++ b/pre_estimater/pre_estimater.hpp
@@ -0,0 +1,29 @@
+#ifndef PRE_ESTIMATER_HPP
+#define PRE_ESTIMATER_HPP
+
+#include <core/fitter.hpp>
+
+
+namespace opt_utilities
+{
+ template <typename Ty,typename Tx,typename Tp,typename Ts=Ty,typename Tstr=std::string>
+ class pre_estimater
+ {
+ private:
+ virtual void do_estimate(fitter<Ty,Tx,Tp,Ts,Tstr>& fit)const=0;
+ virtual pre_estimater* do_clone()const=0;
+ public:
+ void estimate(fitter<Ty,Tx,Tp,Ts,Tstr>& fit)const
+ {
+ do_estimate(fit);
+ }
+
+ pre_estimater* clone()const
+ {
+ return this->do_clone();
+ }
+ };
+}
+
+
+#endif