abundance_matching_f¶
-
cosmo_utils.mock_catalogues.abundance_matching.abundance_matching_f(dict1, dict2, volume1=1.0, volume2=1.0, reverse=True, dens1_opt=False)[source] [edit on github]¶ Abundance matching based on 2 quantities. It assigns values from
dict2to elements indict1Parameters: dict1 : python dictionary or
numpy.ndarrayDictionary or array of 1st property.
- Keys :
var: 1st variable to be analyseddens: Density array corresponding tovarelements.Only if
dens== True.
dict2 : python dictionary
dictionary or array of the 2nd property.
- Keys :
var: 2nd variable to be analyzeddens: Density array corresponding tovarelements.Given if
dens== True.
volume1 : float
Corresponding volume to
dict1.reverse :
bool, optionalDetermines the relation between
var1andvar2.dens1_opt :
bool, optionalReturns: var1_ab :
numpy.ndarrayArray of elements matching those of
dict1, after matching withdict2.