NcGalaxyWLDist

NcGalaxyWLDist — Abstract class describing galaxy wl_dists.

Stability Level

Unstable, unless otherwise indicated

Functions

Object Hierarchy

    GObject
    ╰── NcGalaxyWLDist
        ├── NcGalaxyWLEllipticityBinned
        ├── NcGalaxyWLEllipticityGauss
        ├── NcGalaxyWLEllipticityKDE
        ╰── NcGalaxyWLProj

Description

Abstract class used to define a generic galaxy weak lensing observable probability distribution $P_\mathrm{wl}(g)$.

Functions

nc_galaxy_wl_dist_ref ()

NcGalaxyWLDist *
nc_galaxy_wl_dist_ref (NcGalaxyWLDist *gwld);

Increase the reference of gwld by one.

Parameters

gwld

a NcGalaxyWLDist

 

Returns

gwld .

[transfer full]


nc_galaxy_wl_dist_free ()

void
nc_galaxy_wl_dist_free (NcGalaxyWLDist *gwld);

Decrease the reference count of gwld by one.

Parameters

gwld

a NcGalaxyWLDist

 

nc_galaxy_wl_dist_clear ()

void
nc_galaxy_wl_dist_clear (NcGalaxyWLDist **gwld);

Decrease the reference count of gwld by one, and sets the pointer *gwld to NULL.

Parameters

gwld

a NcGalaxyWLDist

 

nc_galaxy_wl_dist_m2lnP_initial_prep ()

void
nc_galaxy_wl_dist_m2lnP_initial_prep (NcGalaxyWLDist *gwld,
                                      NcGalaxyRedshift *gz,
                                      NcHICosmo *cosmo,
                                      NcHaloDensityProfile *dp,
                                      NcWLSurfaceMassDensity *smd,
                                      const gdouble z_cluster);

Prepare to compute nc_galaxy_wl_dist_m2lnP() at different redshifts.

[virtual m2lnP_initial_prep]

Parameters

gwld

a NcGalaxyWLDist

 

gz

a NcGalaxyRedshift

 

cosmo

a NcHICosmo

 

dp

a NcHaloDensityProfile

 

smd

a NcWLSurfaceMassDensity

 

z_cluster

cluster redshift $z_\mathrm{cl}$

 

nc_galaxy_wl_dist_m2lnP_prep ()

void
nc_galaxy_wl_dist_m2lnP_prep (NcGalaxyWLDist *gwld,
                              NcHICosmo *cosmo,
                              NcHaloDensityProfile *dp,
                              NcWLSurfaceMassDensity *smd,
                              const gdouble z_cluster,
                              const guint gal_i);

Prepare to compute nc_galaxy_wl_dist_m2lnP() at different redshifts.

[virtual m2lnP_prep]

Parameters

gwld

a NcGalaxyWLDist

 

cosmo

a NcHICosmo

 

dp

a NcHaloDensityProfile

 

smd

a NcWLSurfaceMassDensity

 

z_cluster

cluster redshift $z_\mathrm{cl}$

 

gal_i

galaxy id

 

nc_galaxy_wl_dist_m2lnP ()

gdouble
nc_galaxy_wl_dist_m2lnP (NcGalaxyWLDist *gwld,
                         NcHICosmo *cosmo,
                         NcHaloDensityProfile *dp,
                         NcWLSurfaceMassDensity *smd,
                         const gdouble z_cluster,
                         const guint gal_i,
                         const gdouble z);

Computes the probability density of the observable $g$ given the redshift $z$. The probability density is given by $P_\mathrm{wl}(g)$.

[virtual m2lnP]

Parameters

gwld

a NcGalaxyWLDist

 

cosmo

a NcHICosmo

 

dp

a NcHaloDensityProfile

 

smd

a NcWLSurfaceMassDensity

 

z_cluster

cluster redshift $z_\mathrm{cl}$

 

gal_i

galaxy id

 

z

source redshift

 

Returns

the probability density at g , $-2\ln\left[P_\mathrm{wl}(g)\right]$.


nc_galaxy_wl_dist_gen ()

gdouble
nc_galaxy_wl_dist_gen (NcGalaxyWLDist *gwld,
                       const gdouble g_true,
                       NcmRNG *rng);

Generates a $g$ value from the distribution using rng .

[virtual gen]

Parameters

gwld

a NcGalaxyWLDist

 

g_true

true value of the observable

 

rng

a NcmRNG

 

Returns

the generated value $g$.


nc_galaxy_wl_dist_len ()

guint
nc_galaxy_wl_dist_len (NcGalaxyWLDist *gwld);

[virtual len]

Parameters

gwld

a NcGalaxyWLDist

 

Returns

the number of galaxies in the object.