AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ avg()

template<class C >
C::Tvalue aff::func::avg ( const C &  c)

Function template to extract the arithmetic mean from the values stored in a container

Parameters
Cany container class like aff::Array<double> (this value is deduced by the compiler)
cany container of numerical values
Returns
arithmetic mean of container contents
See also
aff::func::util::collect, aff::func::util::Extractavg

Definition at line 90 of file avg.h.

Referenced by main().

91  {
92  return(aff::func::util::collect<C, aff::func::util::Extractavg>(c));
93  } // avg()
Here is the caller graph for this function: