Newer
Older
#include <iostream>
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
public:
ErrValue();
ErrValue(double value, double errPlus = 0.0, double errMinus = 0.0);
~ErrValue();
double mean() const;
double plusErr() const;
double minusErr() const;
void mean(double v);
void plusErr(double v);
void minusErr(double v);
ErrValue operator+(ErrValue& v) const;
ErrValue operator-(ErrValue& v) const;
ErrValue operator*(ErrValue& v) const;
ErrValue operator/(ErrValue& v) const;
ErrValue& operator=(ErrValue& v);
ErrValue& operator+=(ErrValue& v);
ErrValue& operator-=(ErrValue& v);
ErrValue& operator*=(ErrValue& v);
ErrValue& operator/=(ErrValue& v);
bool operator<(ErrValue& v) const;
bool operator<=(ErrValue& v) const;
bool operator>(ErrValue& v) const;
bool operator>=(ErrValue& v) const;
private:
double meanValue;
double plus;
double minus;
friend std::ostream &operator<<(std::ostream &o, const ErrValue &v);
};