Cluster Abundance Distribution

Cluster Abundance Distribution — FIXME

Functions

gdouble (*NcClusterAbundanceN) ()
gdouble (*NcClusterAbundanceIntPd2N) ()
#define nc_cluster_abundance_d2NdzdlnM_val()
#define nc_cluster_abundance_dNdz_val()
#define nc_cluster_abundance_dNdlnM_val()
#define nc_cluster_abundance_N_val()
NcClusterAbundance * nc_cluster_abundance_new ()
NcClusterAbundance * nc_cluster_abundance_nodist_new ()
NcClusterAbundance * nc_cluster_abundance_copy ()
NcClusterAbundance * nc_cluster_abundance_ref ()
void nc_cluster_abundance_free ()
void nc_cluster_abundance_clear ()
void nc_cluster_abundance_prepare ()
void nc_cluster_abundance_prepare_inv_dNdz ()
void nc_cluster_abundance_prepare_inv_dNdlnM_z ()
gdouble nc_cluster_abundance_z_p_lnm_p_d2n ()
gdouble nc_cluster_abundance_z_p_d2n ()
gdouble nc_cluster_abundance_lnm_p_d2n ()
gdouble nc_cluster_abundance_d2n ()
gdouble nc_cluster_abundance_true_n ()
gdouble nc_cluster_abundance_n ()
gdouble nc_cluster_abundance_intp_d2n ()
void nc_cluster_abundance_set_redshift ()
void nc_cluster_abundance_set_mass ()
NcClusterRedshift * nc_cluster_abundance_get_redshift ()
NcClusterMass * nc_cluster_abundance_get_mass ()
NcClusterRedshift * nc_cluster_abundance_peek_redshift ()
NcClusterMass * nc_cluster_abundance_peek_mass ()
void nc_bias_mean_prepare ()
gdouble nc_bias_mean_val ()
gdouble nc_ca_mean_bias_numerator ()
gdouble nc_ca_mean_bias_denominator ()
gdouble nc_ca_mean_bias ()
gdouble nc_ca_mean_bias_Mobs_numerator ()
gdouble nc_ca_mean_bias_Mobs_denominator ()

Properties

NcClusterMass * mass Read / Write / Construct
NcMassFunction * mass-function Read / Write / Construct Only
NcHaloBiasFunc * mean-bias Read / Write / Construct Only
NcClusterRedshift * redshift Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcClusterAbundance

Description

FIXME

Functions

NcClusterAbundanceN ()

gdouble
(*NcClusterAbundanceN) (NcClusterAbundance *cad,
                        NcHICosmo *model);

NcClusterAbundanceIntPd2N ()

gdouble
(*NcClusterAbundanceIntPd2N) (NcClusterAbundance *cad,
                              NcHICosmo *model,
                              gdouble lnM,
                              gdouble z);

nc_cluster_abundance_d2NdzdlnM_val()

#define nc_cluster_abundance_d2NdzdlnM_val(cad,cp,lnM,z) (cad)->d2NdzdlnM_val(cad,cp,lnM,z)

nc_cluster_abundance_dNdz_val()

#define nc_cluster_abundance_dNdz_val(cad,cp,lnMl,lnMu,z) (cad)->dNdz_val(cad,cp,lnMl,lnMu,z)

nc_cluster_abundance_dNdlnM_val()

#define nc_cluster_abundance_dNdlnM_val(cad,cp,lnM,zl,zu) (cad)->dNdlnM_val(cad,cp,lnM,zl,zu)

nc_cluster_abundance_N_val()

#define nc_cluster_abundance_N_val(cad,cp,lnMl,lnMu,zl,zu) (cad)->N_val(cad,cp,lnMl,lnMu,zl,zu)

nc_cluster_abundance_new ()

NcClusterAbundance *
nc_cluster_abundance_new (NcMassFunction *mfp,
                          NcHaloBiasFunc *mbiasf,
                          NcClusterRedshift *clusterz,
                          NcClusterMass *clusterm);

This function allocates memory for a new NcClusterAbundance object and sets its properties to the values from the input arguments.

Parameters

mfp

a NcMassFunction.

 

mbiasf

a NcHaloBiasFunc.

[allow-none]

clusterz

a NcClusterRedshift.

 

clusterm

a NcClusterMass.

 

Returns

A new NcClusterAbundance.


nc_cluster_abundance_nodist_new ()

NcClusterAbundance *
nc_cluster_abundance_nodist_new (NcMassFunction *mfp,
                                 NcHaloBiasFunc *mbiasf);

This function allocates memory for a new NcClusterAbundance object and sets its properties to the values from the input arguments.

Parameters

mfp

a NcMassFunction.

 

mbiasf

a NcHaloBiasFunc.

[allow-none]

Returns

A new NcClusterAbundance.


nc_cluster_abundance_copy ()

NcClusterAbundance *
nc_cluster_abundance_copy (NcClusterAbundance *cad);

Duplicates the NcClusterAbundance object setting the same values of the original propertities.

Parameters

cad

a NcClusterAbundance.

 

Returns

A new NcClusterAbundance.

[transfer full]


nc_cluster_abundance_ref ()

NcClusterAbundance *
nc_cluster_abundance_ref (NcClusterAbundance *cad);

Increases the reference count of cad by one.

Parameters

cad

a NcClusterAbundance.

 

Returns

cad .

[transfer full]


nc_cluster_abundance_free ()

void
nc_cluster_abundance_free (NcClusterAbundance *cad);

Atomically decrements the reference count of cad by one. If the reference count drops to 0, all memory allocated by cad is released.

Parameters

cad

a NcClusterAbundance.

 

nc_cluster_abundance_clear ()

void
nc_cluster_abundance_clear (NcClusterAbundance **cad);

Atomically decrements the reference count of cad by one. If the reference count drops to 0, all memory allocated by cad is released.

Parameters

cad

a NcClusterAbundance.

 

nc_cluster_abundance_prepare ()

void
nc_cluster_abundance_prepare (NcClusterAbundance *cad,
                              NcHICosmo *model);

This function prepares ...

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

nc_cluster_abundance_prepare_inv_dNdz ()

void
nc_cluster_abundance_prepare_inv_dNdz (NcClusterAbundance *cad,
                                       NcHICosmo *model);

This function prepares a bidimensional spline...

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

nc_cluster_abundance_prepare_inv_dNdlnM_z ()

void
nc_cluster_abundance_prepare_inv_dNdlnM_z
                               (NcClusterAbundance *cad,
                                NcHICosmo *model,
                                gdouble z);

This function prepares a spline where the x array corresponds to the value of $\int_{\ln M_0} ^{\ln M_1} d^2N/dzd\ln M dM/ \int_lnMi^lnMf dN/dz dM$ given a redshift $z$ and the y array contains the values of logarithms base e of the mass. It is used to generate a sample of $\ln M$ values.

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

z

redshift.

 

nc_cluster_abundance_z_p_lnm_p_d2n ()

gdouble
nc_cluster_abundance_z_p_lnm_p_d2n (NcClusterAbundance *cad,
                                    NcHICosmo *model,
                                    gdouble *lnM_obs,
                                    gdouble *lnM_obs_params,
                                    gdouble *z_obs,
                                    gdouble *z_obs_params);

This function computes /f$ \int_0^\infty dz \int_0^\infty d\ln M \frac{d^2N(\ln M, z)}{dzd\ln M} * P(z^{phot}|z) * P(\ln M^{obs}|\ln M, z) /f$. We studied the convergence of this integral to optimize this function. We verified that it converges to 5 decimal places at the redshift interval /f$ [z^{phot} - 10\sigma^{phot}, z^{phot} + 10\sigma^{phot}] /f$ and the mass interval /f$ [\ln M^{obs} - 7\sigma_{\ln M}, \ln M^{obs} + 7\sigma_{\ln M}] /f$.

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

lnM_obs

FIXME.

 

lnM_obs_params

FIXME.

 

z_obs

FIXME.

 

z_obs_params

FIXME.

 

Returns

a gdouble which represents /f$ \frac{d^2N(\ln M^{obs}, z^{phot})}{dzd\lnM} /f$.


nc_cluster_abundance_z_p_d2n ()

gdouble
nc_cluster_abundance_z_p_d2n (NcClusterAbundance *cad,
                              NcHICosmo *model,
                              gdouble lnM,
                              gdouble *z_obs,
                              gdouble *z_obs_params);

This function computes /f$ \int_{z_{phot} - 10\sigma_{phot}}^{z_{phot} + 10\sigma_{phot}} dz \, \frac{d^2N}{dzdlnM} * P(z^{photo}|z) /f$. The integral limits were determined requiring a precision to five decimal places.

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

lnM

the logarithm base e of the mass (gdouble).

 

z_obs

FIXME.

 

z_obs_params

FIXME.

 

Returns

a gdouble which corresponds to /f$ \int_{z_{phot} - 10\sigma_{phot}}^{z_{phot} + 10\sigma_{phot}} dz \, \frac{d^2N}{dzdlnM} * P(z^{photo}|z) /f$.


nc_cluster_abundance_lnm_p_d2n ()

gdouble
nc_cluster_abundance_lnm_p_d2n (NcClusterAbundance *cad,
                                NcHICosmo *model,
                                gdouble *lnM_obs,
                                gdouble *lnM_obs_params,
                                gdouble z);

This function computes /f$ \int_{\ln M^{obs} - 7\sigma_{\ln M}}^{\ln M^{obs} + 7\sigma_{\ln M}} d\ln M \, \frac{d^2N}{dzdlnM} * P(\ln M^{obs}|\ln M) /f$. The integral limits were determined requiring a precision to five decimal places.

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

lnM_obs

FIXME.

 

lnM_obs_params

FIXME.

 

z

redshift (gdouble).

 

Returns

a gdouble which corresponds to /f$ \int_{\ln M^{obs} - 7\sigma_{\ln M}}^{\ln M^{obs} + 7\sigma_{\ln M}} d\ln M \, \frac{d^2N}{dzdlnM} * P(\ln M^{obs}|\ln M) /f$.


nc_cluster_abundance_d2n ()

gdouble
nc_cluster_abundance_d2n (NcClusterAbundance *cad,
                          NcHICosmo *model,
                          gdouble lnM,
                          gdouble z);

This function computes /f$ \int_{\ln M^{obs} - 7\sigma_{\ln M}}^{\ln M^{obs} + 7\sigma_{\ln M}} d\ln M \, \frac{d^2N}{dzdlnM} * P(\ln M^{obs}|\ln M) /f$. The integral limits were determined requiring a precision to five decimal places.

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

lnM

true mass.

 

z

true redshift.

 

Returns

a gdouble which corresponds to /f$ \int_{\ln M^{obs} - 7\sigma_{\ln M}}^{\ln M^{obs} + 7\sigma_{\ln M}} d\ln M \, \frac{d^2N}{dzdlnM} * P(\ln M^{obs}|\ln M) /f$.


nc_cluster_abundance_true_n ()

gdouble
nc_cluster_abundance_true_n (NcClusterAbundance *cad,
                             NcHICosmo *model);

FIXME

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

Returns

FIXME


nc_cluster_abundance_n ()

gdouble
nc_cluster_abundance_n (NcClusterAbundance *cad,
                        NcHICosmo *model);

FIXME

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

Returns

FIXME


nc_cluster_abundance_intp_d2n ()

gdouble
nc_cluster_abundance_intp_d2n (NcClusterAbundance *cad,
                               NcHICosmo *model,
                               gdouble lnM,
                               gdouble z);

FIXME

Parameters

cad

a NcClusterAbundance.

 

model

a NcHICosmo.

 

lnM

FIXME

 

z

redshift.

 

Returns

FIXME


nc_cluster_abundance_set_redshift ()

void
nc_cluster_abundance_set_redshift (NcClusterAbundance *cad,
                                   NcClusterRedshift *clusterz);

Sets the value clusterz to the “redshift” property.

Parameters

cad

a NcClusterAbundance.

 

clusterz

value of “redshift”.

 

nc_cluster_abundance_set_mass ()

void
nc_cluster_abundance_set_mass (NcClusterAbundance *cad,
                               NcClusterMass *clusterm);

Sets the value clusterm to the “mass” property.

Parameters

cad

a NcClusterAbundance.

 

clusterm

value of “mass”.

 

nc_cluster_abundance_get_redshift ()

NcClusterRedshift *
nc_cluster_abundance_get_redshift (NcClusterAbundance *cad);

Gets the value of the “redshift” property.

Parameters

cad

a NcClusterAbundance.

 

Returns

the value of “redshift” property.

[transfer full]


nc_cluster_abundance_get_mass ()

NcClusterMass *
nc_cluster_abundance_get_mass (NcClusterAbundance *cad);

Gets the value of the “mass” property.

Parameters

cad

a NcClusterAbundance.

 

Returns

the value of “mass” property.

[transfer full]


nc_cluster_abundance_peek_redshift ()

NcClusterRedshift *
nc_cluster_abundance_peek_redshift (NcClusterAbundance *cad);

Gets the value of the “redshift” property.

Parameters

cad

a NcClusterAbundance.

 

Returns

the value of “redshift” property.

[transfer none]


nc_cluster_abundance_peek_mass ()

NcClusterMass *
nc_cluster_abundance_peek_mass (NcClusterAbundance *cad);

Gets the value of the “mass” property.

Parameters

cad

a NcClusterAbundance.

 

Returns

the value of “mass” property.

[transfer none]


nc_bias_mean_prepare ()

void
nc_bias_mean_prepare (NcClusterAbundance *cad,
                      NcHICosmo *model);

nc_bias_mean_val ()

gdouble
nc_bias_mean_val (NcClusterAbundance *cad,
                  NcHICosmo *model,
                  gdouble lnMl,
                  gdouble lnMu,
                  gdouble z);

nc_ca_mean_bias_numerator ()

gdouble
nc_ca_mean_bias_numerator (NcClusterAbundance *cad,
                           NcHICosmo *model,
                           gdouble lnM,
                           gdouble z);

nc_ca_mean_bias_denominator ()

gdouble
nc_ca_mean_bias_denominator (NcClusterAbundance *cad,
                             NcHICosmo *model,
                             gdouble lnM,
                             gdouble z);

nc_ca_mean_bias ()

gdouble
nc_ca_mean_bias (NcClusterAbundance *cad,
                 NcHICosmo *model,
                 gdouble lnM,
                 gdouble z);

nc_ca_mean_bias_Mobs_numerator ()

gdouble
nc_ca_mean_bias_Mobs_numerator (NcClusterAbundance *cad,
                                NcHICosmo *model,
                                gdouble lnMobs,
                                gdouble z);

nc_ca_mean_bias_Mobs_denominator ()

gdouble
nc_ca_mean_bias_Mobs_denominator (NcClusterAbundance *cad,
                                  NcHICosmo *model,
                                  gdouble lnMobs,
                                  gdouble z);

Types and Values

NcClusterAbundanceDataBinZ

typedef struct _NcClusterAbundanceDataBinz NcClusterAbundanceDataBinZ;

NcClusterAbundanceDataBin

typedef struct _NcClusterAbundanceDataBin NcClusterAbundanceDataBin;

NcClusterAbundanceDataP

typedef struct _NcClusterAbundanceDataP NcClusterAbundanceDataP;

NcClusterAbundanceDataBinM

typedef struct _NcClusterAbundanceDataBinM NcClusterAbundanceDataBinM;

Property Details

The “mass” property

  “mass”                     NcClusterMass *

FIXME

Flags: Read / Write / Construct


The “mass-function” property

  “mass-function”            NcMassFunction *

FIXME

Flags: Read / Write / Construct Only


The “mean-bias” property

  “mean-bias”                NcHaloBiasFunc *

FIXME

Flags: Read / Write / Construct Only


The “redshift” property

  “redshift”                 NcClusterRedshift *

FIXME

Flags: Read / Write / Construct