4
4
#include < cmath>
5
5
#include " OsiFeatures.hpp"
6
6
7
- using namespace std ;
8
-
9
7
int OsiFeatures::n = OFCount;
10
8
11
9
bool dbl_equal ( const double v1, const double v2 ) {
@@ -25,7 +23,7 @@ bool intVal( const double val ) {
25
23
typedef set<double > uSetD;
26
24
#else
27
25
#include < unordered_set>
28
- typedef unordered_set<double > uSetD;
26
+ typedef std:: unordered_set<double > uSetD;
29
27
#endif
30
28
31
29
// store at most this number of different values
@@ -34,10 +32,10 @@ typedef unordered_set<double> uSetD;
34
32
class Summary {
35
33
public:
36
34
Summary () :
37
- minV ( numeric_limits<double >::max() ),
38
- maxV ( numeric_limits<double >::min() ),
39
- minAbsV ( numeric_limits<double >::max() ),
40
- maxAbsV ( numeric_limits<double >::min() ),
35
+ minV ( std:: numeric_limits<double >::max() ),
36
+ maxV ( std:: numeric_limits<double >::min() ),
37
+ minAbsV ( std:: numeric_limits<double >::max() ),
38
+ maxAbsV (std:: numeric_limits<double >::min() ),
41
39
avg (0.0 ),
42
40
ratioLSA (0.0 ),
43
41
percIntEl (0.0 ),
@@ -53,12 +51,12 @@ class Summary {
53
51
{ }
54
52
55
53
void add ( double val ) {
56
- this ->minV = min (val, minV);
57
- this ->maxV = max (val, maxV);
58
- double absv = abs (val);
54
+ this ->minV = std:: min (val, minV);
55
+ this ->maxV = std:: max (val, maxV);
56
+ double absv = std:: abs (val);
59
57
if (absv >= 1e-16 ) {
60
- this ->minAbsV = min (absv, minAbsV);
61
- this ->maxAbsV = max (absv, maxAbsV);
58
+ this ->minAbsV = std:: min (absv, minAbsV);
59
+ this ->maxAbsV = std:: max (absv, maxAbsV);
62
60
}
63
61
this ->summV += val;
64
62
if (intVal (val)) {
0 commit comments