some plotting
This commit is contained in:
parent
6419e48e61
commit
2302158928
10 changed files with 4133 additions and 74 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue