aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-04 15:20:38 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-04 15:20:38 +0000
commit1f716fe1c51904cba8464a4c999110554e98e363 (patch)
tree7bdf2dd216ab5ff95bae5455e61269e591239ab4 /example
parenta620837fc33ef740e95f8092df0cfe7d4222a656 (diff)
downloadopt-utilities-1f716fe1c51904cba8464a4c999110554e98e363.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@154 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'example')
-rw-r--r--example/test_fitter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/example/test_fitter.cpp b/example/test_fitter.cpp
index 8da9d86..a658a6c 100644
--- a/example/test_fitter.cpp
+++ b/example/test_fitter.cpp
@@ -1,6 +1,7 @@
#include <core/optimizer.hpp>
#include <methods/powell/powell_method.hpp>
#include <methods/aga/aga.hpp>
+#include <error_estimator/error_estimator.hpp>
#include <core/fitter.hpp>
#include <vector>
#include <iostream>
@@ -56,4 +57,10 @@ int main()
f.fit();
cout<<f.get_param_value("k")<<endl;
cout<<f.get_param_value("b")<<endl;
+
+ double lower=3;
+ double upper=6;
+
+ estimate_error(f,std::string("b"),lower,upper,1.,1E-10);
+ std::cout<<lower<<"\t"<<upper<<endl;
}