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;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
utk_experiments/plotting/points_backup.pdf
Normal file
BIN
utk_experiments/plotting/points_backup.pdf
Normal file
Binary file not shown.
BIN
utk_experiments/result_data/points_backup.pdf
Normal file
BIN
utk_experiments/result_data/points_backup.pdf
Normal file
Binary file not shown.
4097
utk_experiments/result_data/points_backup.txt
Normal file
4097
utk_experiments/result_data/points_backup.txt
Normal file
File diff suppressed because it is too large
Load diff
BIN
utk_experiments/result_data/points_backup_spec.png
Normal file
BIN
utk_experiments/result_data/points_backup_spec.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 798 KiB |
BIN
utk_experiments/result_data/spectral.png
Normal file
BIN
utk_experiments/result_data/spectral.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 MiB |
1
utk_experiments/utk
Submodule
1
utk_experiments/utk
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit a12c408ddac03425444c857a725572bfe6fa4837
|
||||
Loading…
Add table
Add a link
Reference in a new issue