Method

NumCosmoGalaxyHODgen

Declaration [src]

void
nc_galaxy_hod_gen (
  NcGalaxyHOD* hod,
  const gdouble lnM,
  NcmRNG* rng,
  gint* n_central,
  gint* n_satellite
)

Description [src]

Draws an integer realization of the central and satellite occupations of a halo of mass $e^{\ln M}$. Satellites are drawn only when a central is present.

Parameters

lnM

Type: const gdouble

The natural logarithm of the halo mass (solar masses).

rng

Type: NcmRNG

A NcmRNG.

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

Type: gint*

The realized number of central galaxies (0 or 1).

The argument will be set by the function.
n_satellite

Type: gint*

The realized number of satellite galaxies.

The argument will be set by the function.