predictor.h
来自「用data miming技术进行false prediction」· C头文件 代码 · 共 43 行
H
43 行
#ifndef PREDICTOR_H
#define PREDICTOR_H
#include <iostream>
#include <vector>
#include <algorithm>
#include "Event.h"
#include "AppException.h"
#include "AssRule.h"
#include "StatsAnalyzer.h"
#include "EventHistory.h"
using namespace std;
class Predictor {
private:
int predictionWindowSize;
int ruleTimeWindowSize;
int historyWindowSize;
int slideWindowSize;
int statCount;
int assCount;
vector<Event*>* failureList;
void initializeList(const char* fileName);
void printFailureList();
AssRule* ar;
StatsAnalyzer* statsAnalyzer;
EventHistory* eventHistory;
bool isFailurePresent(int fromTime, int toTime);
bool predictFailure(int fromTime, int toTime);
public:
Predictor(const char* fileName);
~Predictor();
void streamEvents(const char* fileName);
void streamFailures(const char* fileName);
};
#endif /* PREDICTOR_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?