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


ssclib (ssclib-4.36.1) [xmmsas_20230412_1735-21.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

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



XMM-Newton SOC -- 2023-04-16