|
|
@ -1,5 +1,4 @@
|
|
|
|
#include "histogram.h"
|
|
|
|
#include "histogram.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
void FindMinMax(const vector<double>& marks, double& min, double& max) {
|
|
|
|
void FindMinMax(const vector<double>& marks, double& min, double& max) {
|
|
|
@ -15,7 +14,7 @@ void FindMinMax(const vector<double>& marks, double& min, double& max) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
vector <double> MakeHistogram(const vector<double>& marks, int NCharts) {
|
|
|
|
static vector <double> MakeHistogram(const vector<double>& marks, int NCharts) {
|
|
|
|
double interval = 0, i = 0, min = 0, max = 0;
|
|
|
|
double interval = 0, i = 0, min = 0, max = 0;
|
|
|
|
vector<double> chart(NCharts);
|
|
|
|
vector<double> chart(NCharts);
|
|
|
|
FindMinMax(marks, min, max);
|
|
|
|
FindMinMax(marks, min, max);
|
|
|
|