Method

NumCosmoClusterMassresample_vec

Declaration [src]

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

Description [src]

Generates a random sample of the observed mass proxies given the true mass and redshift. This is a convenience wrapper around nc_cluster_mass_resample() that uses NcmVector for proper Python bindings support.

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: gdouble

True redshift.

lnM_obs

Type: NcmVector

A NcmVector to store the observed mass proxies.

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

Type: NcmVector

A NcmVector with observed mass params.

The argument can be NULL.
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.