35 lines
689 B
C++
35 lines
689 B
C++
#ifndef _H_ALGORITHM_BR_TEMP_FIT_H
|
|
#define _H_ALGORITHM_BR_TEMP_FIT_H
|
|
|
|
#include <eqpalg/AlgCommonDefine.h>
|
|
#include <eqpalg/AlgorithmBase.h>
|
|
#include <queue>
|
|
#include <zcus/IHDBTools.h>
|
|
|
|
const int CS_SLIDE_AVG_SIZE = 120;
|
|
class AlgBrTempFit:virtual public AlgorithmBase
|
|
{
|
|
public:
|
|
AlgBrTempFit(const string name,const Json::Value rulejson, const string ruleid,IHDBTools* pihdb);
|
|
|
|
virtual ~AlgBrTempFit();
|
|
|
|
public:
|
|
|
|
virtual int Reload();
|
|
virtual int calculate(string& outjson);
|
|
|
|
|
|
private:
|
|
float DriveTempCal1( float xi, float xmax, float ymax );
|
|
|
|
private:
|
|
|
|
//slide avg queue cache
|
|
queue<float> mq_slide;
|
|
double m_sum;
|
|
IHDBTools* mp_ihdb;
|
|
};
|
|
|
|
#endif
|