Lines Matching refs:stat
56 Stat1(const Self &stat) { in Stat1() argument
57 sum_ = stat.sum_; in Stat1()
58 sum_squares_ = stat.sum_squares_; in Stat1()
59 numsamples_ = stat.numsamples_; in Stat1()
67 Self &operator=(const Self &stat) {
68 sum_ = stat.sum_;
69 sum_squares_ = stat.sum_squares_;
70 numsamples_ = stat.numsamples_;
74 Self &operator+=(const Self &stat) {
75 sum_ += stat.sum_;
76 sum_squares_ += stat.sum_squares_;
77 numsamples_ += stat.numsamples_;
81 Self &operator-=(const Self &stat) {
82 sum_ -= stat.sum_;
83 sum_squares_ -= stat.sum_squares_;
84 numsamples_ -= stat.numsamples_;
96 Self operator+(const Self &stat) const { return Self(*this) += stat; }
99 Self operator-(const Self &stat) const { return Self(*this) -= stat; }
235 Stat1MinMax(const Self &stat) : Stat1<VType, NumType>(stat) { in Stat1MinMax() argument
236 max_ = stat.max_; in Stat1MinMax()
237 min_ = stat.min_; in Stat1MinMax()
251 Self &operator=(const Self &stat) {
252 this->Stat1<VType, NumType>::operator=(stat);
253 max_ = stat.max_;
254 min_ = stat.min_;
258 Self &operator+=(const Self &stat) {
259 this->Stat1<VType, NumType>::operator+=(stat);
260 if (stat.max_ > max_) max_ = stat.max_;
261 if (stat.min_ < min_) min_ = stat.min_;
265 Self &operator*=(const VType &stat) {
266 this->Stat1<VType, NumType>::operator*=(stat);
270 Self operator+(const Self &stat) const { return Self(*this) += stat; }
283 Self &operator-=(const Self &stat); // senseless. let it undefined.
286 Self operator-(const Self &stat) const; // senseless. let it undefined.