next up previous contents index
Next: Subroutine polar_decomposition Up: Module linearalgebra_module Previous: Subroutine least_squares   Contents   Index

Subroutine update_running_average_and_variance


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call update_running_average_and_variance(average,variance,x,N)\end{verbatim}
\end{boxedminipage}

This routine updates the average and variance of a quantity that is sampled periodically

average, variance -- real(dp), intent(inout)

x -- real(dp), intent(in)

The new sample value

N -- integer, intent(in)

The sample number

polar_decomposition subroutine

gabor 2009-06-30