summaryrefslogtreecommitdiff
path: root/hmm_correlation.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-02-11 14:25:52 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-02-11 14:25:52 +0100
commite5163658f659f6863ee4ef6473f9124884e7957c (patch)
tree80b2db1d84fb78ea385a39741c757e044a27151d /hmm_correlation.cpp
parent07a5acbdf79153bb505771708202a9a5fc6f98f0 (diff)
downloadcode-master.tar.gz
code-master.tar.bz2
code-master.zip
Added aging code.HEADmaster
Diffstat (limited to 'hmm_correlation.cpp')
-rw-r--r--hmm_correlation.cpp8
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;