Digitalisierte Elektroverteilung zur permanenten Verbraucherüberwachung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MLLinReg.h 438B

1234567891011121314151617181920212223
  1. #ifndef MLLINREG_H
  2. #define MLLINREG_H
  3. #include "MLAnalyzer.h"
  4. constexpr int SECONDS_IN_WEEK = 7*24*60*60;
  5. class MLLinReg: public MLAnalyzer
  6. {
  7. private:
  8. Eigen::MatrixXd Theta;
  9. void normalEquation();
  10. bool first = true;
  11. long t0 = 0;
  12. float criticalResidualCurrent;
  13. int criticalTimeRangeSec;
  14. public:
  15. MLLinReg(CappedStorage*);
  16. MLAlert updateModel() override;
  17. bool checkCritical();
  18. };
  19. #endif // MLLINREG_H