Method

NumCosmoClusterRedshiftresample

Declaration [src]

gboolean
nc_cluster_redshift_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: NcHICosmo

A NcHICosmo.

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

Type: const gdouble

True mass.

z

Type: const gdouble

True redshift.

z_obs

Type: gdouble*

Observed redshift.

The argument will be set by the function.
z_obs_params

Type: An array of double

Observed redshift params.

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

Type: NcmRNG

A NcmRNG.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE if successful.