57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
/******************************************************************************************************************
|
|
* Action instruction algorithm(study sample data online,compare with sample data)
|
|
*
|
|
* arg[0] action expression
|
|
* arg[1] feedback expression
|
|
* arg[2] expression of judgment result
|
|
*
|
|
* feedback expression
|
|
* arg[2] expression of judgment result
|
|
*
|
|
* 1.0 2020-12-17 zoufuzhou
|
|
******************************************************************************************************************/
|
|
#ifndef _H_ALGORITHM_EXPRESSION_ACTION_SAMPLE_H
|
|
#define _H_ALGORITHM_EXPRESSION_ACTION_SAMPLE_H
|
|
|
|
#include <eqpalg/AlgCommonDefine.h>
|
|
#include <eqpalg/algs/AlgExp.h>
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
|
|
|
|
|
|
class AlgExpActionSample:virtual public AlgExp
|
|
{
|
|
public:
|
|
AlgExpActionSample(const string& name,const Json::Value& rulejson, const string& ruleid, IHDBTools* ihdb);
|
|
|
|
virtual ~AlgExpActionSample();
|
|
|
|
public:
|
|
|
|
virtual int Reload();
|
|
virtual int calculate(string& outjson);
|
|
|
|
private:
|
|
|
|
int calculate_once(string& outjson,HD3Record* hdRec);
|
|
|
|
|
|
|
|
private:
|
|
MathExpression* mp_expact;
|
|
MathExpression* mp_expfbk;
|
|
|
|
// private:
|
|
// float m_samples[3];
|
|
// float m_stat[3];
|
|
// bool m_nosample;
|
|
// bool m_islearned;
|
|
// vector<double> mv_stat;
|
|
// int m_archive;
|
|
// time_t mt_lastsave;
|
|
};
|
|
|
|
#endif
|