Virtual Method
NumCosmoClusterRedshiftresample
Declaration [src]
gboolean
resample (
NcClusterRedshift* clusterz,
NcHICosmo* cosmo,
const gdouble lnM,
const gdouble z,
gdouble* z_obs,
const gdouble* z_obs_params,
NcmRNG* rng
)
Description [src]
Randomly samples the redshift distribution clusterz given z, lnM and
z_obs_params, and assigns the sampled redshift to z_obs.
Parameters
cosmo-
Type:
NcHICosmoA
NcHICosmo.The data is owned by the caller of the method. lnM-
Type:
const gdoubleTrue mass.
z-
Type:
const gdoubleTrue redshift.
z_obs-
Type:
gdouble*Observed redshift.
The argument will be set by the function. z_obs_params-
Type: An array of
doubleObserved redshift params.
The data is owned by the caller of the method. rng-
Type:
NcmRNGA
NcmRNG.The data is owned by the caller of the method.