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


ssclib (ssclib-4.36.1) [xmmsas_20230412_1735-21.0.0]

Integrated Gaussian probability

This function returns the probability that a gaussian-distributed variable $y$ will depart from the mean $y_{\rm {mean}}$ by greater than $abs(y-y_{\rm {mean}})$. For values obeying a gaussian distribution of standard deviation $\sigma$, the probability $P$ of a given $y$ value (or greater) occurring by chance is

$\displaystyle P(y) = 1 - erf \big[ abs(y - y_{\rm {mean}})/\sigma\sqrt{2} \big].
$

  function integratedGaussProb(testY, meanY, sigma) result(probability)
    real(single), intent(in) :: testY, meanY, sigma
    real(single) :: probability
  end function integratedGaussProb



XMM-Newton SOC -- 2023-04-16