Virtual Method

NumCosmoClusterMassresample

Declaration [src]

gboolean
resample (
  NcClusterMass* clusterm,
  NcHICosmo* cosmo,
  const gdouble lnM,
  const gdouble z,
  gdouble* lnM_obs,
  const gdouble* lnM_obs_params,
  NcmRNG* rng
)

Description [src]

Generates a random sample of the observed mass proxies given the true mass and redshift.

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

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

Type: const gdouble

Logarithm base e of the true mass.

z

Type: const gdouble

True redshift.

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

Observed mass 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 the sample was generated successfully within the limits of the observable mass proxies.