#include <statfunc.h>
Public Member Functions | |
template<class I> | |
T | operator() (Subscript nelem, I begin) |
Compute sum from data pointed to by begin. |
T | A floating point type. |
Definition at line 88 of file statfunc.h.
T SCPPNT::Sum< T >::operator() | ( | Subscript | nelem, | |
I | begin | |||
) | [inline] |
Compute sum from data pointed to by begin.
I | An iterator type pointing to values for which the sum is computed. | |
nelem | Number of values used to compute sum. | |
begin | Iterator to values used to compute sum. |
Definition at line 101 of file statfunc.h.
00102 { 00103 T sum = 0; 00104 00105 while (nelem--) 00106 { 00107 sum += *begin; 00108 ++begin; 00109 } 00110 00111 return sum; 00112 }