get rid of the errors from simple-test1 and test1-6
authorLisa Hsu <hsul@eecs.umich.edu>
Sun, 23 Nov 2003 17:57:16 +0000 (12:57 -0500)
committerLisa Hsu <hsul@eecs.umich.edu>
Sun, 23 Nov 2003 17:57:16 +0000 (12:57 -0500)
base/statistics.cc:
    fix how some stats are printed to get rid of some of those pesky regression errors.  this does not fix all of them, just the unimportant ones.

--HG--
extra : convert_revision : 247675fd5bbb47e29c8c077a8d2b2996be1b7072

base/statistics.cc

index 94b8852f877731b5b1d39628a828979802fb3562..737f8f73b44746f0d3704df33c6f03cdfe7a04d8 100644 (file)
@@ -748,7 +748,7 @@ VectorDisplay(std::ostream &stream,
                         _pdf = vec[i] / _total;
                         _cdf += _pdf;
                     } else {
-                        _pdf = _cdf = NAN;
+                        _pdf = _cdf = 0.0;
                     }
                     if (!(myflags & cdf)) {
                         PrintOne(stream, vec[i], subname, subdesc, myprecision,