xpipe.xhandle.parbins.assign_jk_labels

xpipe.xhandle.parbins.assign_jk_labels(ra, dec, centers)[source]

Assigns a Jacknife (JK) label to the points based on the passed centers

Parameters
  • ra (np.array) – Right Ascension of objects

  • dec (np.array) – Declination of objects

  • centers (np.array) – Coordinates of centers for K-means patches

Returns

  • inds which are NOT IN patch i,

  • inds which are IN patch i,

  • JK labels

Return type

bool array, bool array, int array