Lines Matching refs:stat
57 Stat1(const Self &stat) { in Stat1() argument
58 sum_ = stat.sum_; in Stat1()
59 sum_squares_ = stat.sum_squares_; in Stat1()
60 numsamples_ = stat.numsamples_; in Stat1()
68 Self &operator=(const Self &stat) {
69 sum_ = stat.sum_;
70 sum_squares_ = stat.sum_squares_;
71 numsamples_ = stat.numsamples_;
75 Self &operator+=(const Self &stat) {
76 sum_ += stat.sum_;
77 sum_squares_ += stat.sum_squares_;
78 numsamples_ += stat.numsamples_;
82 Self &operator-=(const Self &stat) {
83 sum_ -= stat.sum_;
84 sum_squares_ -= stat.sum_squares_;
85 numsamples_ -= stat.numsamples_;
97 Self operator+(const Self &stat) const { return Self(*this) += stat; }
100 Self operator-(const Self &stat) const { return Self(*this) -= stat; }
236 Stat1MinMax(const Self &stat) : Stat1<VType, NumType>(stat) { in Stat1MinMax() argument
237 max_ = stat.max_; in Stat1MinMax()
238 min_ = stat.min_; in Stat1MinMax()
252 Self &operator=(const Self &stat) {
253 this->Stat1<VType, NumType>::operator=(stat);
254 max_ = stat.max_;
255 min_ = stat.min_;
259 Self &operator+=(const Self &stat) {
260 this->Stat1<VType, NumType>::operator+=(stat);
261 if (stat.max_ > max_) max_ = stat.max_;
262 if (stat.min_ < min_) min_ = stat.min_;
266 Self &operator*=(const VType &stat) {
267 this->Stat1<VType, NumType>::operator*=(stat);
271 Self operator+(const Self &stat) const { return Self(*this) += stat; }
284 Self &operator-=(const Self &stat); // senseless. let it undefined.
287 Self operator-(const Self &stat) const; // senseless. let it undefined.