Method

NumCosmoClusterAbundancez_p_lnM_p_d2n

Declaration [src]

gdouble
nc_cluster_abundance_z_p_lnM_p_d2n (
  NcClusterAbundance* cad,
  NcHICosmo* cosmo,
  NcClusterRedshift* clusterz,
  NcClusterMass* clusterm,
  gdouble* lnM_obs,
  gdouble* lnM_obs_params,
  gdouble* z_obs,
  gdouble* z_obs_params
)

Description [src]

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

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

The data is owned by the caller of the method.
clusterz

Type: NcClusterRedshift

A NcClusterRedshift.

The data is owned by the caller of the method.
clusterm

Type: NcClusterMass

A NcClusterMass.

The data is owned by the caller of the method.
lnM_obs

Type: An array of double

Logarithm base e of the observed mass.

The data is owned by the caller of the method.
lnM_obs_params

Type: An array of double

Parameters for the observed mass distribution (e.g., measurement uncertainties).

The argument can be NULL.
The data is owned by the caller of the method.
z_obs

Type: An array of double

Observed redshift.

The data is owned by the caller of the method.
z_obs_params

Type: An array of double

Parameters for the observed redshift distribution (e.g., photometric redshift uncertainties).

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: gdouble

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