35 lines
777 B
C++
35 lines
777 B
C++
|
//
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
//
|
|||
|
#include "StdAfx.h"
|
|||
|
#include <iostream>
|
|||
|
#include "Method.h"
|
|||
|
|
|||
|
void Method::partition() {
|
|||
|
this->xLearning.clear();
|
|||
|
this->xEstimation.clear();
|
|||
|
this->xLearning.resize(x.size() - countPointForecast);
|
|||
|
this->xEstimation.resize(this->countPointForecast);
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
for (unsigned int i = 0; i < x.size() - countPointForecast; i++) {
|
|||
|
this->xLearning[i] = x[i];
|
|||
|
}
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
int j=0;
|
|||
|
for (unsigned int i = x.size() - countPointForecast; i < x.size(); i++) {
|
|||
|
this->xEstimation[j++] = x[i];
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
vector<double> Method::getXEstimation() {
|
|||
|
return this->xEstimation;
|
|||
|
}
|
|||
|
|
|||
|
int Method::getNamberParam() {
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|