XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-4.33) [xmmsas_20190531_1155-18.0.0]

stdDev

  function stdDev(vector)
    real(single), intent(in) :: vector(:)
    real(single)             :: stdDev
  end function stdDev

This find the average $<v>$ of the input values $v_i$, then estimates the scatter or standard deviation $\sigma$ of these values from


\begin{displaymath}
\sigma^2 = \frac{1}{N-1} \sum_{i}^{N} (v_i - <v>)^2.
\end{displaymath}



XMM-Newton SOC/SSC -- 2019-06-02