|
|
|
@ -5,6 +5,10 @@
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
void find_minmax(const vector<double> &numbers, double &min, double &max){
|
|
|
|
|
if (numbers.size() == 0){
|
|
|
|
|
min = 0;
|
|
|
|
|
max = 0;
|
|
|
|
|
} else {
|
|
|
|
|
min = numbers[0];
|
|
|
|
|
max = numbers[0];
|
|
|
|
|
for (double x : numbers) {
|
|
|
|
@ -16,6 +20,7 @@ void find_minmax(const vector<double> &numbers, double &min, double &max){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vector<size_t> make_histogram(const vector<double> &numbers, size_t bin_count){
|
|
|
|
|
vector<size_t> bins ( bin_count );
|
|
|
|
|