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


emsaplib (emsaplib-2.29.1) [xmmsas_20141104_1833-14.0.0]

quantilePoisson badpixutils_mod module localMedian Home Index

Meta Index / Home Page / Description / badpixutils_mod module

corrCoeff

Aim: Compute correlation coefficient and main axes from a list of (X,Y) coordinates assuming identical and independent errors on X and Y.

The routine declaration is:

  real function corrCoeff(x, y, theta, sigma1, sigma2)

! x, y   : list of X and Y values
! Returns if present:
! theta  : rotation angle (radians, between -pi/4 and pi/4) to main axes
! sigma1 : dispersion along theta (not necessarily major axis)
! sigma2 : dispersion perpendicular to theta

    real, intent(in) , dimension(:) :: x, y
    real, intent(out), optional     :: theta, sigma1, sigma2



XMM-Newton SOC/SSC -- 2014-11-04