30 lines
530 B
C
30 lines
530 B
C
|
#ifndef BIC_H
|
||
|
#define BIC_H
|
||
|
#include "Estimation.h"
|
||
|
#include <vector>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
enum algoritm {
|
||
|
RMSE,
|
||
|
sMAPE,
|
||
|
Classic
|
||
|
};
|
||
|
|
||
|
|
||
|
class Bic : public Estimation {
|
||
|
private:
|
||
|
algoritm versionBIC;
|
||
|
|
||
|
double classicBIC(vector<double>, vector<double>, int);
|
||
|
double rmseBIC(vector<double>, vector<double>, int);
|
||
|
double smapeBIC(vector<double>, vector<double>, int);
|
||
|
|
||
|
public:
|
||
|
Bic(algoritm, int);
|
||
|
~Bic();
|
||
|
int pc;
|
||
|
double getValue(vector<double>, vector<double>);
|
||
|
double getValue(int, vector<double>, vector<double>);
|
||
|
};
|
||
|
#endif
|