HOD¶
-
class
cosmo_utils.mock_catalogues.hod_funcs.HOD(**kwargs)[source] [edit on github]¶ Bases:
objectComputes various statistics corresponding to a given set of HOD parameters. HOD stands for
Halo Occupation Distribution[http://arxiv.org/abs/astro-ph/0109001].Parameters: use_identity :
bool, optionalIf True, it uses the identity of expectation values, i.e.
<A> + <B> = <A + B>. If False, it returns the number of galaxies by computing the total number of central and satellite galaxies. This variable is set to ‘True’ by default.log_m0 :
floatHalo mass, below which there are no satellite galaxies.
log_m1 :
floatMass scale where haloes contain one satellite galaxy on average.
log_Mmin :
floatMinimum halo mass that can host a
centralgalaxy.sigma_logM :
floatScatter around
Mminalpha :
floatSlope of the power-law occupation function at high masses.
mass_bin :
float, optionalBin/step size of the logarithmic halo mass array. This variable is set to
0.01by default.log_mhalo_min :
float, optionalMinimum logarithmic halo mass to consider. This variable is set to
10.by default.log_mhalo_max :
float, optionalMaximum logarithmic halo mass to consider. This variable is set to
15.by default.Methods Summary
ncen_avg()Computes the average number of centralgalaxies as function of halo mass.ngals_avg([arr_len, bin_statval, …])Computes the average number of galaxies (centrals + satellites) as function of halo mass. ngals_avg_pd_create()Creates a DataFrame with the information of mass and the average numbers of 1) Centrals, 2) satellites, and 3) all galaxies. nsat_avg()Computes the average number of centralgalaxies as function of halo mass.Methods Documentation
-
ncen_avg()[source] [edit on github]¶ Computes the average number of
centralgalaxies as function of halo mass.Returns: ncen_avg_arr :
numpy.ndarrayArray of average number of central galaxies as function of halo mass.
-
ngals_avg(arr_len=10, bin_statval='left', return_pd_dict=True, use_identity=True)[source] [edit on github]¶ Computes the average number of galaxies (centrals + satellites) as function of halo mass.
Parameters: arr_len :
init, optionalMinimum number of elements in each bin of
x. This variable is set to0by default.return_pd_dict :
boolIf True, it returns a dictionary with
pd.DataFramesfor each of the statistics.Returns: ngal_choice :
numpy.ndarrayArray of total number of galaxies. This variable depends on the choice of
use_identity.
-
ngals_avg_pd_create()[source] [edit on github]¶ Creates a DataFrame with the information of mass and the average numbers of 1) Centrals, 2) satellites, and 3) all galaxies.
Returns: gals_pd :
pandas.DataFrameDataFrame containing info about the average numbers of different types of galaxies and their corresponding halo masses.
-
nsat_avg()[source] [edit on github]¶ Computes the average number of
centralgalaxies as function of halo mass.Returns: nsat_avg_arr :
numpy.ndarrayArray of average number of central galaxies as function of halo mass.
-