add function to query whether ErrorStats class has data

This commit is contained in:
Axel Kohlmeyer
2020-08-09 01:01:35 -04:00
parent 2edad432ce
commit e94d1c5537
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public:
double dev() const;
double max() const { return maxerr; }
double idx() const { return maxidx; }
bool has_data() const { return num > 0; }
private:
double sum, sumsq, maxerr;