From 2c6da6a35a08d287f10579f422b826420ac12106 Mon Sep 17 00:00:00 2001 From: tayral Date: Wed, 12 Mar 2014 11:28:25 +0000 Subject: [PATCH] Made autocorrtime calculation from binning faster. Bin size is doubled at each step to converge faster and reuse previous binned series. --- .../triqs/statistics/autocorrelation_time.cpp | 12 ++++++- .../statistics/autocorrelation_time.output | 8 +++-- triqs/statistics/statistics.hpp | 33 ++++++++++++++++++- 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/test/triqs/statistics/autocorrelation_time.cpp b/test/triqs/statistics/autocorrelation_time.cpp index 216740b1..d2264b62 100644 --- a/test/triqs/statistics/autocorrelation_time.cpp +++ b/test/triqs/statistics/autocorrelation_time.cpp @@ -2,6 +2,7 @@ #include #include "./correlated_gaussian.hpp" #include +#include #define TEST(X) std::cout << BOOST_PP_STRINGIZE((X)) << " ---> "<< (X) <0) {return empirical_average(t);} + else{ std::cout << "autocorrelation time not converged!!" << std::endl; return autocorr_time;} + } } // namespace statistics } // triqs