keh::Accumulate< true, T > Class Template Reference

#include <statistics.h>

List of all members.

Public Member Functions

 Accumulate (std::vector< T > &x, double &sum, double &sumsq, unsigned long &n)


Detailed Description

template<class T>
class keh::Accumulate< true, T >

Specialization of Accumulate for arithmetic types

Definition at line 94 of file statistics.h.


Constructor & Destructor Documentation

template<class T>
keh::Accumulate< true, T >::Accumulate ( std::vector< T > &  x,
double &  sum,
double &  sumsq,
unsigned long &  n 
) [inline]

Constructor

Parameters:
x vector of values
sum sum of values
sumsq sum of squared values
n number of values, i.e., length of the vector
The constructor is useful because of its side effects, namely sum, sumsq, and n are adjusted and are accesible from the calling function

Definition at line 107 of file statistics.h.

References Util::sqr().


The documentation for this class was generated from the following file:
Generated on Tue Mar 27 16:03:53 2007 for mcmc by  doxygen 1.5.1