git-svn-id: svn://db.shs.com.ru/libs@353 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-01-31 14:21:22 +00:00
parent 92529d243e
commit 719954fc1b
16 changed files with 395 additions and 21 deletions

View File

@@ -73,10 +73,11 @@ public:
XType(const CDType & cdt = CDType());
void setXMode(XMode mode) {mode_ = mode;}
void setAvg(int avg) {avg_size = avg;}
double currentValue() const {if (history.isEmpty()) return 0; return history.back();}
double currentValue() const {return last_val;}
private:
PIVector<double> history;
double last_val;
int avg_size;
XMode mode_;
};