Skip to content
Snippets Groups Projects
Commit 5a42b7e8 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

improve testing program

parent d2e746cc
Branches
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
#include <sciplot/sciplot.hpp>
#include <random>
#include <eisgenerator/basicmath.h>
#include <eisgenerator/normalize.h>
int main(int argc, char** argv)
......@@ -19,7 +20,7 @@ int main(int argc, char** argv)
return 1;
}
eis::Model model(argv[1], 100, true);
eis::Model model(argv[1], 20, true);
eis::Range omega(1, 1e6, 50, true);
eis::Log::level = eis::Log::DEBUG;
......@@ -48,6 +49,7 @@ int main(int argc, char** argv)
size_t index = distrib(gen);
std::vector<eis::DataPoint> data = model.executeSweep(omega, recommendedIndecies[index]);
noise.add(data);
eis::normalize(data);
std::pair<std::valarray<fvalue>, std::valarray<fvalue>> arrays = eis::eisToValarrays(data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment