Class
NumCosmoGalaxyHOD
Description [src]
abstract class NumCosmo.GalaxyHOD : NumCosmoMath.Model
{
/* No available fields */
}
Abstract halo occupation distribution.
Base class for halo occupation distribution (HOD) models, describing how many central and satellite galaxies populate a halo of a given mass. Concrete subclasses provide the mean central and satellite occupations as functions of the halo mass (nc_galaxy_hod_mean_n_central() and nc_galaxy_hod_mean_n_satellite()); this base class turns those means into an integer realization in nc_galaxy_hod_gen().
The central galaxy is drawn as a Bernoulli trial with probability equal to the mean
central occupation (clamped to [0, 1]) when NcGalaxyHOD:stochastic-central is
TRUE, or placed deterministically when the mean is at least one half otherwise.
Satellites are drawn from a Poisson distribution and only when a central is present.
As an NcmModel its occupation parameters live in the model parameter vector and can
be fit; it is meant to be composed by the mock member generators.
Functions
nc_galaxy_hod_clear
If hod is different from NULL, decreases its reference count and sets
hod to NULL.
Instance methods
nc_galaxy_hod_gen
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.
nc_galaxy_hod_mean_n_central
Computes the mean central galaxy occupation of a halo of mass $e^{\ln M}$.
nc_galaxy_hod_mean_n_satellite
Computes the mean satellite galaxy occupation of a halo of mass $e^{\ln M}$.
Properties
NumCosmo.GalaxyHOD:stochastic-central
Whether the central galaxy is a Bernoulli draw with probability equal to the mean
central occupation (TRUE) or placed deterministically when the mean is at least
one half (FALSE).
Properties inherited from NcmModel (9)
NumCosmoMath.Model:implementation
The implementation flags of the model class, see ncm_model_check_impl_flag().
NumCosmoMath.Model:name
The name of the model class.
NumCosmoMath.Model:nick
The nickname of the model class.
NumCosmoMath.Model:params-types
The NcmParamType of each parameter.
NumCosmoMath.Model:reparam
The reparametrization, see ncm_model_set_reparam().
NumCosmoMath.Model:scalar-params-len
The number of scalar parameters.
NumCosmoMath.Model:sparam-array
The parameter descriptions that differ from the class ones, NcmSParam keyed by
parameter index. Each one is placed by its parameter name: a description of a
parameter declared with ncm_model_class_add_removed_param() is skipped, and one of
any other unknown parameter aborts.
NumCosmoMath.Model:submodel-array
The submodels, attached at construction.
NumCosmoMath.Model:vector-params-len
The number of vector parameters (not their lengths).
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct NumCosmoGalaxyHODClass {
gdouble (* mean_n_central) (
NcGalaxyHOD* hod,
const gdouble lnM
);
gdouble (* mean_n_satellite) (
NcGalaxyHOD* hod,
const gdouble lnM
);
}
No description available.
Class members
mean_n_central: gdouble (* mean_n_central) ( NcGalaxyHOD* hod, const gdouble lnM )No description available.
mean_n_satellite: gdouble (* mean_n_satellite) ( NcGalaxyHOD* hod, const gdouble lnM )No description available.
Virtual methods
NumCosmo.GalaxyHODClass.mean_n_central
Computes the mean central galaxy occupation of a halo of mass $e^{\ln M}$.
NumCosmo.GalaxyHODClass.mean_n_satellite
Computes the mean satellite galaxy occupation of a halo of mass $e^{\ln M}$.