sp_validation.rho_tau¶
- _extract_xip(correlations)[source]¶
Return flattened array of xip values from a list of correlations.
- get_rho_tau_w_cov(config, version, treecorr_config, outdir, base, method, cov_rho=False, npatch=None)[source]¶
Compute rho/tau statistics and, if requested, their covariance.
- get_rho_tau(config, version, treecorr_config, outdir, base, cov_rho=False, npatch=None)[source]¶
Compute rho and tau statistics for a given version of the catalogue.
- get_theory_cov(config, version, treecorr_config, outdir, base, nbin_ang=100, nbin_rad=100)[source]¶
Compute an analytical estimate of the covariance matrix of rho and tau-statistics.
- get_jackknife_cov(config, version, treecorr_config, outdir, base, npatch, ncov=100)[source]¶
Compute the covariance matrix of rho and tau-statistics using the jackknife method. Also compute rho and tau-statistics.
- get_samples(psf_fitter, version, base, cov_type='jk', apply_debias=None, sampler='emcee')[source]¶
Return (alpha, beta, eta) samples using
emceeor least squares.- Parameters:
psf_fitter (PSFFitter) – PSF fitter instance that provides
load_*helpers.version (str) – Catalog identifier whose rho/tau statistics are sampled.
base (str) – Precomputed basename (e.g.
SP_v1.4_minsep=…) used for filenames.cov_type (str, optional) – Covariance label (
'jk','th', or'sim'). Defaults to'jk'.apply_debias (int or None, optional) – Jackknife patch count used to debias samples. Disabled when
None.sampler (str, optional) –
'emcee'for MCMC sampling,'lsq'for least squares (default'emcee').
- get_samples_emcee(psf_fitter, version, base, nwalkers=124, nsamples=10000, cov_type='jk', apply_debias=None)[source]¶
Draw (alpha, beta, eta) samples using
emceeand the tau covariance.- Parameters:
psf_fitter (PSFFitter) – PSF fitter instance managing rho/tau statistics and covariances.
version (str) – Catalog identifier whose rho/tau statistics are sampled.
base (str) – Precomputed basename for locating statistics/covariance files.
nwalkers (int, optional) – Number of walkers for the MCMC run (default
124).nsamples (int, optional) – Number of samples drawn per walker (default
10000).cov_type (str, optional) – Covariance label (
'jk'/'th'/'sim'). Defaults to'jk'.apply_debias (int or None, optional) – Jackknife patch count applied during debiasing. Disabled when
None.
- get_samples_lsq(psf_fitter, version, base, apply_debias=None, cov_type='jk')[source]¶
Compute least-squares samples of (alpha, beta, eta) using the tau covariance.
- Parameters:
psf_fitter (PSFFitter) – PSF fitter instance managing rho/tau statistics and covariances.
version (str) – Catalog identifier whose rho/tau statistics are sampled.
base (str) – Precomputed basename for locating statistics/covariance files.
apply_debias (int or None, optional) – Jackknife patch count applied during debiasing. Disabled when
None.cov_type (str, optional) – Covariance label (defaults to
'jk').