cpp/main.cpp

30 lines
596 B
C++
Raw Normal View History

2024-08-18 11:21:27 +00:00
#include <iostream>
2024-08-16 17:55:27 +00:00
#include <unordered_map>
#include <random>
#include "io.h"
#include "sims.h"
#include "motions/random.h"
#include "times/delta.h"
2024-08-18 11:21:27 +00:00
int main (int argc, char *argv[]) {
if (argc < 2) {
std::cerr << "Usage: " << argv[0] << " PARAMETER_FILE" << std::endl;
return 1;
}
std::cout << argv[0] << std::endl;
std::unordered_map parameter { parse_arguments(argv[1]) };
2024-08-16 17:55:27 +00:00
std::random_device rd;
std::mt19937_64 rng(rd());
auto motion = RandomJump(rng);
auto dist = DeltaDistribution(rng);
run_spectrum(parameter, motion, dist);
}