|
|
@ -2,6 +2,7 @@
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include "histogram.h"
|
|
|
|
#include "histogram.h"
|
|
|
|
#include "text.h"
|
|
|
|
#include "text.h"
|
|
|
|
|
|
|
|
#include "svg.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace std;
|
|
|
|
struct Input
|
|
|
|
struct Input
|
|
|
@ -33,5 +34,5 @@ int main()
|
|
|
|
size_t max_count;
|
|
|
|
size_t max_count;
|
|
|
|
auto in = input_data();
|
|
|
|
auto in = input_data();
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
show_histogram_text(bins, in.bin_count, max_count);
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
}
|
|
|
|
}
|
|
|
|