Moster2010Relation¶
-
class
cosmo_utils.mock_catalogues.shmr_funcs.Moster2010Relation(**kwargs)[source] [edit on github]¶ Bases:
objectClass used to define the stellar-halo mass relation of central galaxies as a function of halo mass.
Parameters: input_h : {
int,float} optionalValue of the Hubble constant in limits of between \([0, 1]\). This variable acts as the input
hof variables, and it is set to1by default.Value of the Hubble constant in limits of between \([0, 1]\). This variable acts as the output
hof variables, and it is set to1by default.Methods Summary
compute_example([log_mhalo_min, …])Computes the Moster et al.(2010)relation for central galaxies..mean_log_stellar_mass(log_halo_mass[, z])Returns the halo mass of a central galaxy as a function of its halo mass. Methods Documentation
-
compute_example(log_mhalo_min=10, log_halo_max=15, mstep=500, return_pd=True)[source] [edit on github]¶ Computes the
Moster et al. (2010)relation for central galaxies.Parameters: log_mhalo_min : {
float,int}, optionalLogarithmic 10-base minimum halo mass. This variable is set to
10by default.log_halo_max : {
float,int}, optionalLogarithmic 10-base maximum halo mass. This variable is set to
15by default.Number of elements in the output arrays of halo masses and halo masses. This variable is set to
100by default.return_pd :
bool, optionalIf
True, the function returns apandas.DataFramewith the logarithmic 10-base halo masses and stellar masses of central galaxies in the units ofself.out_h. This variable is set toTrueby default.Returns: mass_obj : {
dict,pandas.DataFrame}Dictionary containing arrays or floats of the logarithmic 10-base halo mass and stellar masses of central galaxies in units of
self.out_h. Ifreturn_pd == True, this function returns apandas.DataFrameinstead.
-
mean_log_stellar_mass(log_halo_mass, z=0)[source] [edit on github]¶ Returns the halo mass of a central galaxy as a function of its halo mass.
Parameters: log_halo_mass : {
float,numpy.ndarray,list}Logarithmic 10-base halo mass array of the galaxies.
Redshift of the halo hosting the galaxy. If passing an array, it must be the same length as the input
log_mstar.Returns: mass_dict :
dictDictionary with the logarithmic 10-base stellar mass and halo mass arrays in the same units as
self.out_h.
-