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


ssclib (ssclib-4.36.3) [22.0.0-9173c7d25-20250127]

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 -- 2025-01-27