Behroozi2010Relation¶
-
class
cosmo_utils.mock_catalogues.shmr_funcs.Behroozi2010Relation(**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_mstar_min, …])Computes the Behroozi et al.(2010)relation for central galaxies..mean_log_halo_mass(log_mstar[, z])Returns the halo mass of a central galaxy as a function of its stellar mass. Methods Documentation
-
compute_example(log_mstar_min=8, log_mstar_max=12, mstep=500, return_pd=True)[source] [edit on github]¶ Computes the
Behroozi et al. (2010)relation for central galaxies.Parameters: log_mstar_min : {
float,int}, optionalLogarithmic 10-base minimum stellar mass. This variable is set to
10by default.log_mstar_max : {
float,int}, optionalLogarithmic 10-base maximum stellar mass. This variable is set to
15by default.Number of elements in the output arrays of halo masses and stellar 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_halo_mass(log_mstar, z=0)[source] [edit on github]¶ Returns the halo mass of a central galaxy as a function of its stellar mass.
Parameters: log_mstar : {
float,numpy.ndarray,list}Logarithmic 10-base stellar 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.
-