some plotting

This commit is contained in:
CDaut 2024-05-25 11:33:31 +02:00
parent 6419e48e61
commit 2302158928
Signed by: clara
GPG key ID: 223391B52FAD4463
10 changed files with 4133 additions and 74 deletions

View file

@ -4,6 +4,7 @@
#include <utk/metrics/RadialSpectrum.hpp>
#define DIMENSION 1025
#define NSAMPLES 4096
int main()
{
@ -17,11 +18,15 @@ int main()
std::cout << "generating samples…" << std::endl;
if(sampler.generateSamples(points, 4096))
if(sampler.generateSamples(points, NSAMPLES))
{
std::cout << "computing spectrum…" << std::endl;
auto result = utk::Spectrum{DIMENSION, true}.compute(points);
std::ofstream pointFile;
pointFile.open("points.txt");
pointFile << NSAMPLES << std::endl;
write_text_pointset("points.txt", points);
std::ofstream file;