Ignore:
Timestamp:
Sep 30, 2007, 2:50:10 AM (14 years ago)
Author:
Peter
Message:

Sorry this commit is a bit to big.

Adding a yat_assert. The yat assert are turned on by providing a
'-DYAT_DEBUG' flag to preprocessor if normal cassert is turned
on. This flag is activated for developers running configure with
--enable-debug. The motivation is that we can use these yat_asserts in
header files and the yat_asserts will be invisible to the normal user
also if he uses C-asserts.

added output operator in DataLookup2D and removed output operator in
MatrixLookup?

Removed template function add_values in Averager and weighted version

Added function to AveragerWeighted? taking iterator to four ranges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/MatrixLookup.cc

    r865 r916  
    217217
    218218
    219   std::ostream& operator<<(std::ostream& s, const MatrixLookup& m)
    220   {
    221     s.setf(std::ios::dec);
    222     s.precision(12);
    223     for(size_t i=0, j=0; i<m.rows(); i++)
    224       for (j=0; j<m.columns(); j++) {
    225         s << m(i,j);
    226         if (j<m.columns()-1)
    227           s << s.fill();
    228         else if (i<m.rows()-1)
    229           s << "\n";
    230       }
    231     return s;
    232   }
    233 
    234219
    235220
Note: See TracChangeset for help on using the changeset viewer.