![]() |
![]() |
![]() |
NumCosmo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
Synopsis
struct NcClusterAbundance; struct NcClusterAbundanceClass; NcClusterAbundanceDataBin; NcClusterAbundanceDataBinM; typedef NcClusterAbundanceDataBinZ; NcClusterAbundanceDataP; gdouble (*NcClusterAbundanceIntPd2N) (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
); gdouble (*NcClusterAbundanceN) (NcClusterAbundance *cad
,NcHICosmo *model
); void nc_bias_mean_prepare (NcClusterAbundance *cad
,NcHICosmo *model
); gdouble nc_bias_mean_val (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnMl
,gdouble lnMu
,gdouble z
); gdouble nc_ca_mean_bias (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
); gdouble nc_ca_mean_bias_Mobs_denominator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnMobs
,gdouble z
); gdouble nc_ca_mean_bias_Mobs_numerator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnMobs
,gdouble z
); gdouble nc_ca_mean_bias_denominator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
); gdouble nc_ca_mean_bias_numerator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
); #define nc_cluster_abundance_N_val (cad, cp, lnMl, lnMu, zl, zu) void nc_cluster_abundance_clear (NcClusterAbundance **cad
); NcClusterAbundance * nc_cluster_abundance_copy (NcClusterAbundance *cad
); #define nc_cluster_abundance_d2NdzdlnM_val (cad, cp, lnM, z) gdouble nc_cluster_abundance_d2n (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
); #define nc_cluster_abundance_dNdlnM_val (cad, cp, lnM, zl, zu) #define nc_cluster_abundance_dNdz_val (cad, cp, lnMl, lnMu, z) void nc_cluster_abundance_free (NcClusterAbundance *cad
); NcClusterMass * nc_cluster_abundance_get_mass (NcClusterAbundance *cad
); NcClusterRedshift * nc_cluster_abundance_get_redshift (NcClusterAbundance *cad
); gdouble nc_cluster_abundance_intp_d2n (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
); gdouble nc_cluster_abundance_lnm_p_d2n (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble *lnM_obs
,gdouble *lnM_obs_params
,gdouble z
); gdouble nc_cluster_abundance_n (NcClusterAbundance *cad
,NcHICosmo *model
); NcClusterAbundance * nc_cluster_abundance_new (NcMassFunction *mfp
,NcHaloBiasFunc *mbiasf
,NcClusterRedshift *clusterz
,NcClusterMass *clusterm
); NcClusterMass * nc_cluster_abundance_peek_mass (NcClusterAbundance *cad
); NcClusterRedshift * nc_cluster_abundance_peek_redshift (NcClusterAbundance *cad
); void nc_cluster_abundance_prepare (NcClusterAbundance *cad
,NcHICosmo *model
); void nc_cluster_abundance_prepare_inv_dNdlnM_z (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble z
); void nc_cluster_abundance_prepare_inv_dNdz (NcClusterAbundance *cad
,NcHICosmo *model
); NcClusterAbundance * nc_cluster_abundance_ref (NcClusterAbundance *cad
); void nc_cluster_abundance_set_mass (NcClusterAbundance *cad
,NcClusterMass *clusterm
); void nc_cluster_abundance_set_redshift (NcClusterAbundance *cad
,NcClusterRedshift *clusterz
); gdouble nc_cluster_abundance_true_n (NcClusterAbundance *cad
,NcHICosmo *model
); gdouble nc_cluster_abundance_z_p_d2n (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble *z_obs
,gdouble *z_obs_params
); 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
);
Properties
"mass" NcClusterMass* : Read / Write / Construct "mass-function" NcMassFunction* : Read / Write / Construct Only "mean-bias" NcHaloBiasFunc* : Read / Write / Construct Only "redshift" NcClusterRedshift* : Read / Write / Construct
Details
NcClusterAbundanceIntPd2N ()
gdouble (*NcClusterAbundanceIntPd2N) (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
);
nc_bias_mean_val ()
gdouble nc_bias_mean_val (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnMl
,gdouble lnMu
,gdouble z
);
nc_ca_mean_bias ()
gdouble nc_ca_mean_bias (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
);
nc_ca_mean_bias_Mobs_denominator ()
gdouble nc_ca_mean_bias_Mobs_denominator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnMobs
,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_denominator ()
gdouble nc_ca_mean_bias_denominator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
);
nc_ca_mean_bias_numerator ()
gdouble nc_ca_mean_bias_numerator (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
);
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_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.
|
a NcClusterAbundance. |
nc_cluster_abundance_copy ()
NcClusterAbundance * nc_cluster_abundance_copy (NcClusterAbundance *cad
);
Duplicates the NcClusterAbundance object setting the same values of the original propertities.
|
a NcClusterAbundance. |
Returns : |
A new NcClusterAbundance. [transfer full] |
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_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.
|
a NcClusterAbundance. |
|
a NcHICosmo. |
|
true mass. |
|
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_dNdlnM_val()
#define nc_cluster_abundance_dNdlnM_val(cad,cp,lnM,zl,zu) (cad)->dNdlnM_val(cad,cp,lnM,zl,zu)
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_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.
|
a NcClusterAbundance. |
nc_cluster_abundance_get_mass ()
NcClusterMass * nc_cluster_abundance_get_mass (NcClusterAbundance *cad
);
Gets the value of the "mass" property.
|
a NcClusterAbundance. |
Returns : |
the value of "mass" property. [transfer full] |
nc_cluster_abundance_get_redshift ()
NcClusterRedshift * nc_cluster_abundance_get_redshift (NcClusterAbundance *cad
);
Gets the value of the "redshift" property.
|
a NcClusterAbundance. |
Returns : |
the value of "redshift" property. [transfer full] |
nc_cluster_abundance_intp_d2n ()
gdouble nc_cluster_abundance_intp_d2n (NcClusterAbundance *cad
,NcHICosmo *model
,gdouble lnM
,gdouble z
);
FIXME
|
a NcClusterAbundance. |
|
a NcHICosmo. |
|
FIXME |
|
redshift. |
Returns : |
FIXME |
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.
|
a NcClusterAbundance. |
|
a NcHICosmo. |
|
FIXME. |
|
FIXME. |
|
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_n ()
gdouble nc_cluster_abundance_n (NcClusterAbundance *cad
,NcHICosmo *model
);
FIXME
|
a NcClusterAbundance. |
|
a NcHICosmo. |
Returns : |
FIXME |
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.
|
a NcMassFunction. |
|
a NcHaloBiasFunc. [allow-none] |
|
a NcClusterRedshift. |
|
a NcClusterMass. |
Returns : |
A new NcClusterAbundance. |
nc_cluster_abundance_peek_mass ()
NcClusterMass * nc_cluster_abundance_peek_mass (NcClusterAbundance *cad
);
Gets the value of the "mass" property.
|
a NcClusterAbundance. |
Returns : |
the value of "mass" property. [transfer none] |
nc_cluster_abundance_peek_redshift ()
NcClusterRedshift * nc_cluster_abundance_peek_redshift (NcClusterAbundance *cad
);
Gets the value of the "redshift" property.
|
a NcClusterAbundance. |
Returns : |
the value of "redshift" property. [transfer none] |
nc_cluster_abundance_prepare ()
void nc_cluster_abundance_prepare (NcClusterAbundance *cad
,NcHICosmo *model
);
This function prepares ...
|
a NcClusterAbundance. |
|
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.
|
a NcClusterAbundance. |
|
a NcHICosmo. |
|
redshift. |
nc_cluster_abundance_prepare_inv_dNdz ()
void nc_cluster_abundance_prepare_inv_dNdz (NcClusterAbundance *cad
,NcHICosmo *model
);
This function prepares a bidimensional spline...
|
a NcClusterAbundance. |
|
a NcHICosmo. |
nc_cluster_abundance_ref ()
NcClusterAbundance * nc_cluster_abundance_ref (NcClusterAbundance *cad
);
Increases the reference count of cad
by one.
|
a NcClusterAbundance. |
Returns : |
cad . [transfer full]
|
nc_cluster_abundance_set_mass ()
void nc_cluster_abundance_set_mass (NcClusterAbundance *cad
,NcClusterMass *clusterm
);
Sets the value clusterm
to the "mass" property.
|
a NcClusterAbundance. |
|
value of "mass". |
nc_cluster_abundance_set_redshift ()
void nc_cluster_abundance_set_redshift (NcClusterAbundance *cad
,NcClusterRedshift *clusterz
);
Sets the value clusterz
to the "redshift" property.
|
a NcClusterAbundance. |
|
value of "redshift". |
nc_cluster_abundance_true_n ()
gdouble nc_cluster_abundance_true_n (NcClusterAbundance *cad
,NcHICosmo *model
);
FIXME
|
a NcClusterAbundance. |
|
a NcHICosmo. |
Returns : |
FIXME |
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.
|
a NcClusterAbundance. |
|
a NcHICosmo. |
|
the logarithm base e of the mass (gdouble). |
|
FIXME. |
|
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_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$.
|
a NcClusterAbundance. |
|
a NcHICosmo. |
|
FIXME. |
|
FIXME. |
|
FIXME. |
|
FIXME. |
Returns : |
a gdouble which represents /f$ \frac{d^2N(\ln M^{obs}, z^{phot})}{dzd\lnM} /f$. |
Property Details
The "mass-function"
property
"mass-function" NcMassFunction* : Read / Write / Construct Only
Mass Function.
The "mean-bias"
property
"mean-bias" NcHaloBiasFunc* : Read / Write / Construct Only
Mean Halo Bias Function.