diff options
Diffstat (limited to 'hmm_correlation.cpp')
-rw-r--r-- | hmm_correlation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <fstream> #include <iostream> -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; |