Ignore:
Timestamp:
Jan 4, 2006, 9:32:05 PM (16 years ago)
Author:
Peter
Message:

added tests for AveragerPairWeighted?, corrected docs, and added an
add(vector) for AvergaerPair?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/statistics/AveragerPair.cc

    r420 r490  
    44#include <c++_tools/statistics/Averager.h>
    55
     6#include <cassert>
    67#include <utility>
    78
     
    1718    return *this;
    1819  }
    19 
     20 
     21  void AveragerPair::add(const gslapi::vector& x, const gslapi::vector& y)
     22  {
     23    assert(x.size()==y.size());
     24    for (size_t i=0; i<x.size(); i++)
     25      add(x(i),y(i));
     26  }
    2027
    2128}} // of namespace statistics and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.