forked from jsphLim/ARIMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ARMAMath.h
31 lines (25 loc) · 1.19 KB
/
ARMAMath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*************************************************************************
> File Name: ARMAMath.h
> Author: yue
> Mail:
> Created Time: 2018年03月15日 星期四 13时44分00秒
************************************************************************/
#ifndef _ARMAMATH_H
#define _ARMAMATH_H
#include <vector>
class ARMAMath{
public:
double avgData(std::vector<double> dataArray);
double sumData(std::vector<double> dataArray);
double stderrData(std::vector<double> dataArray);
double varerrData(std::vector<double> dataArray);
std::vector<double> autocorData(std::vector<double> dataArray,int order);
std::vector<double> autocovData(std::vector<double> dataArray,int order);
double mutalCorr(std::vector<double> dataFir,std::vector<double> dataSec);
double getModelAIC(std::vector<std::vector<double>> vec,std::vector<double> data,int type);
std::vector<std::vector<double>> LevinsonSolve(std::vector<double> garma);
std::vector<double> computeARCoe(std::vector<double> dataArray,int p);
std::vector<double> computeMACoe(std::vector<double> dataArray,int q);
std::vector<double> computeARMACoe(std::vector<double> dataArray,int p,int q);
};
#endif