TS++ library: time series library

◆ rms()

template<class T >
T ts::rms ( const aff::ConstSeries< T > &  a)

Calculate rms value.

The function evaluates the root mean square

\[ c = \sqrt{\frac{1}{N} \sum\limits_l a_l^2} \]

Parameters
a$ a_l $
Returns
c

Definition at line 93 of file innerproduct.h.

References innerproduct().

94  { return(sqrt(innerproduct(a,a)/a.size())); }
T innerproduct(const aff::ConstSeries< T > &a, const aff::ConstSeries< T > &b)
Calculate inner product of two series.
Definition: innerproduct.h:66
Here is the call graph for this function: