From e5163658f659f6863ee4ef6473f9124884e7957c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 11 Feb 2021 14:25:52 +0100 Subject: Added aging code. --- hmm_correlation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hmm_correlation.cpp') diff --git a/hmm_correlation.cpp b/hmm_correlation.cpp index 80a6927..522367f 100644 --- a/hmm_correlation.cpp +++ b/hmm_correlation.cpp @@ -7,9 +7,9 @@ #include #include -std::string getFilename(unsigned n, double β, double θ₀, unsigned lag, unsigned skip) { +std::string getFilename(unsigned n, double β, double θ₀, unsigned m, unsigned lag, unsigned skip) { return "correlation_" + std::to_string(n) + "_" + std::to_string(β) + "_" + - std::to_string(θ₀) + "_" + std::to_string(lag) + "_" + std::to_string(skip) + std::to_string(θ₀) + "_" + std::to_string(m) + "_" + std::to_string(lag) + "_" + std::to_string(skip) + ".dat"; } @@ -77,7 +77,7 @@ int main(int argc, char* argv[]) { MCMC simulation(n, β, Q, θ₀); if (loadDataFromFile) { - Q.Q.read(getFilename(n, β, θ₀, l, s)); + Q.Q.read(getFilename(n, β, θ₀, m, l, s)); std::cout << "Imported data from file, number of steps " << Q.Q.num_added() << "." << std::endl; } @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) { simulation.run(N); std::cout << "Finished simulation of " << β << ", writing output file." << std::endl; - std::string filename = getFilename(n, β, θ₀, l, s); + std::string filename = getFilename(n, β, θ₀, m, l, s); Q.Q.write(filename); return 0; -- cgit v1.2.3-70-g09d2