Method

NumCosmoHaloCatalogGeneratorgenerate

Declaration [src]

NcHaloCatalog*
nc_halo_catalog_generator_generate (
  NcHaloCatalogGenerator* gen,
  NcmMSet* mset,
  NcmRNG* rng
)

Description [src]

Draws a Poisson realization of the cluster number counts and samples the observed redshift and mass of each object, returning them as a NcHaloCatalog of kind NC_HALO_CATALOG_KIND_CLUSTER. See the class description for the column layout.

Parameters

mset

Type: NcmMSet

A NcmMSet holding the cosmology and the cluster redshift/mass models.

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

A new NcHaloCatalog with the sampled objects.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.