NcDataXcor

NcDataXcor — cross-correlation data object.

Functions

Properties

NcmMatrix * X1 Read / Write
NcmMatrix * X2 Read / Write
guint nobs Read / Write / Construct
NcXcor * xc Read / Write
NcmObjArray * xcab-oa Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── NcmData
        ╰── NcmDataGaussCov
            ╰── NcDataXcor

Description

This object implements the gaussian likelihood described in \cite{2017arXiv170604583D} for the joint analysis of an abitrary number of cosmic probes with their auto- and cross-angular pseudo power spectra. The covariance of the pseudo spectra implemented here is \begin{align} \mathrm{Cov}\left( \tilde{C}_{\ell}^{AB}, \tilde{C}_{\ell'}^{CD} \right) = & \sqrt{ D_{\ell}^{AD} D_{\ell'}^{AD} D_{\ell}^{BC} D_{\ell'}^{BC}} \mathbfss{X_1}_{\ell \ell'}^{ABCD}\nonumber \ &+ \sqrt{ D_{\ell}^{AC} D_{\ell'}^{AC} D_{\ell}^{BD} D_{\ell'}^{BD}} \mathbfss{X_2}_{\ell \ell'}^{ABCD} \end{align} with \begin{equation} D_{\ell}^{AB} = \left{ \begin{array}{ll} C_{\ell}^{AB} & \text{if } A \neq B \ C_{\ell}^{AA} + N_{\ell}^{A} & \text{if } A=B \ \end{array}\right. . \end{equation}

The matrices $X_{1/2}$ are fixed and describe the mixing between spectra due to the effect of the masks.

Functions

nc_data_xcor_new_full ()

NcDataXcor *
nc_data_xcor_new_full (const guint nobs,
                       NcXcor *xc,
                       gboolean use_norma);

FIXME

Parameters

nobs

a guint, the number of observables

 

xc

a NcXcor to perform the computation of theoretical power spectra.

 

use_norma

a gboolean, whether to normalize the likehood.

 

Returns

FIXME.

[transfer full]


nc_data_xcor_set_2 ()

void
nc_data_xcor_set_2 (NcDataXcor *dxc,
                    guint a,
                    guint b,
                    guint ell_th_cut_off,
                    guint ell_lik_min,
                    guint ell_lik_max,
                    const gchar *clobs_filename,
                    const gchar *mixing_filename,
                    const guint mixing_filelength);

nc_data_xcor_set_AB ()

void
nc_data_xcor_set_AB (NcDataXcor *dxc,
                     NcXcorAB *xcab);

Links the data object to the object actually containing the data.

Parameters

dxc

a NcDataXcor

 

xcab

a NcXcorAB containing the data for the correlation of observables $A$ and $B$.

 

nc_data_xcor_set_3 ()

void
nc_data_xcor_set_3 (NcDataXcor *dxc);

To be used once all data storage objects have been set.

Parameters

dxc

a NcDataXcor

 

nc_data_xcor_set_4 ()

void
nc_data_xcor_set_4 (NcDataXcor *dxc,
                    guint a,
                    guint b,
                    guint c,
                    guint d,
                    const gchar *X1_filename,
                    const gchar *X2_filename,
                    guint X_filelength);

Sets the $X_1$ and $X_2$ matrices used in the covariance matrix for observables $A$, $B$ $C$ and $D$.

Parameters

dxc

a NcDataXcor

 

a

a guint, the index of observable $A$

 

b

a guint, the index of observable $B$

 

c

a guint, the index of observable $C$

 

d

a guint, the index of observable $D$

 

X1_filename

a gchar, the name of the file where the matrix $X_1^{ABCD}$ is stored

 

X2_filename

a gchar, the name of the file where the matrix $X_2^{ABCD}$ is stored

 

X_filelength

a guint, the size of the actual matrices stored in theses files (in case it is larger than the maximum multipole used)

 

nc_data_xcor_set_5 ()

void
nc_data_xcor_set_5 (NcDataXcor *dxc);

To be used once all $X_{1/2}$ matrices have been set.

Parameters

dxc

a NcDataXcor

 

nc_data_xcor_mean_func_ab ()

void
nc_data_xcor_mean_func_ab (NcDataXcor *dxc,
                           NcmVector *vp,
                           guint a,
                           guint b);

FIXME

Parameters

dxc

a NcDataXcor

 

vp

a NcmVector

 

a

a guint

 

b

a guint

 

nc_data_xcor_get_cl_obs ()

void
nc_data_xcor_get_cl_obs (NcDataXcor *dxc,
                         NcmVector *vp,
                         guint a,
                         guint b);

FIXME

Parameters

dxc

a NcDataXcor

 

vp

a NcmVector

 

a

a guint

 

b

a guint

 

nc_data_xcor_cov_func_abcd ()

void
nc_data_xcor_cov_func_abcd (NcDataXcor *dxc,
                            NcmMatrix *cov,
                            guint a,
                            guint b,
                            guint c,
                            guint d);

FIXME

Parameters

dxc

a NcDataXcor

 

cov

a NcmMatrix

 

a

a guint

 

b

a guint

 

c

a guint

 

d

a guint

 

Types and Values

NC_DATA_XCOR_MAX

#define NC_DATA_XCOR_MAX (5)

NC_DATA_XCOR_DL

#define NC_DATA_XCOR_DL 10

Property Details

The “X1” property

  “X1”                       NcmMatrix *

X matrix.

Owner: NcDataXcor

Flags: Read / Write


The “X2” property

  “X2”                       NcmMatrix *

X matrix.

Owner: NcDataXcor

Flags: Read / Write


The “nobs” property

  “nobs”                     guint

Number of observables.

Owner: NcDataXcor

Flags: Read / Write / Construct

Allowed values: <= 5

Default value: 0


The “xc” property

  “xc”                       NcXcor *

Xcor object to compute theoretical spectra.

Owner: NcDataXcor

Flags: Read / Write


The “xcab-oa” property

  “xcab-oa”                  NcmObjArray *

NcXcorAB array.

Owner: NcDataXcor

Flags: Read / Write