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/statistics/Averager.h

    r914 r916  
    6767    ///
    6868    void add(double d, u_long n=1);
    69 
    70     ///
    71     /// Adding each value in an array \a v \a n (default=1)
    72     /// number of times. The requirements for the type T of the
    73     /// array \a v are: operator[] returning an element and function
    74     /// size() returning the number of elements.
    75     ///   
    76     ///
    77     template <typename T>
    78     void add_values(const T& v, u_long n=1);
    7969
    8070    /**
     
    205195  }
    206196
    207   // Template implementations
    208   template <typename T>
    209   void  Averager::add_values(const T& v, u_long n)
    210   {
    211     for (size_t i=0; i<v.size(); i++)
    212       add(v[i],n);
    213   }
    214 
    215197}}} // of namespace statistics, yat, and theplu
    216198
Note: See TracChangeset for help on using the changeset viewer.