halomod.integrate_corr.AngularCF¶
- class halomod.integrate_corr.AngularCF(*args, **kwargs)[source]¶
Framework extension to angular correlation functions.
- Parameters
p1 (callable, optional) – The redshift distribution of the sample. This needs not be normalised to 1, as this will occur internally. May be either a function of radial distance [Mpc/h] or redshift. If a function of radial distance,
p_of_z()
must be set to False. Default is a flat distribution in redshift.p2 (callable, optional) – See p1. This can optionally be a different function against which to cross-correlate. By default is equivalent to
p1()
.theta_min (float, optional) – min,max angular separations [Rad]
theta_max (float, optional) – min,max angular separations [Rad]
theta_num (int, optional) – Number of steps in angular separation
theta_log (bool, optional) – Whether to use logspace for theta values
zmin (float, optional) – The redshift limits of the sample distribution. Note that this is in redshit, regardless of the value of
p_of_z()
.zmax (float, optional) – The redshift limits of the sample distribution. Note that this is in redshit, regardless of the value of
p_of_z()
.znum (int, optional) – Number of steps in redshift grid.
logu_min (float, optional) – min,max of the log10 of radial separation grid [Mpc/h]. Must be large enough to let the integral over the 3D correlation function to converge.
logu_max (float, optional) – min,max of the log10 of radial separation grid [Mpc/h]. Must be large enough to let the integral over the 3D correlation function to converge.
unum (int, optional) – Number of steps in the u grid.
check_p_norm (bool, optional) – If False, cancels checking the normalisation of
p1()
andp2()
.p_of_z (bool, optional) – Whether
p1()
andp2()
are functions of redshift.kwargs (unpacked-dict) – Any keyword arguments passed down to
halomod.HaloModel
.
Methods
__init__
([p1, p2, theta_min, theta_max, …])Initializer for the class.
clone
(**kwargs)Create and return an updated clone of the current object.
get_all_parameter_defaults
([recursive])Dictionary of all parameters and defaults.
Yield all parameter names in the class.
get_dependencies
(*q)Determine all parameter dependencies of the quantities in q.
parameter_info
([names])Prints information about each parameter in the class.
power_hh
(k[, mmin, mmax, mmin2, mmax2])The halo-centre power spectrum of haloes in a given mass range.
Obtain a list of all available output quantities.
update
(**kwargs)Updates any parameter passed.
validate
()Perform validation of the input parameters as they relate to each other.
Attributes
Switch to turn off exceptions for mdef’s not matching hmf_model
Maximum mass at which to perform analysis [units \(\log_{10}M_\odot h^{-1}\)].
Minimum mass at which to perform analysis [units \(\log_{10}M_\odot h^{-1}\)].
The angular correlation function w(theta) for tracers.
The angular correlation function w(theta) for matter.
The halo bias as a function of halo mass.
The effective bias of matter in DM halos.
The tracer occupation-weighted halo bias factor (Tinker 2005).
Bias Model.
Dictionary of parameters for the Bias model.
The total fraction of tracers that are centrals.
The mean central occupation of the tracer as a function of halo mass.
If False, cancels checking the normalisation of
p1()
andp2()
.Concentration-mass-redshift relation.
An instance of a COLOSSUS cosmology, which can be used to perform various COLOSSUS operations.
Options for colossus cosmology not set/derived in the astropy cosmology.
The halo model 1-halo dark matter auto-correlation function.
A callable returning the halo model 1-halo DM auto-correlation function.
The 1-halo term of the tracer auto correlations.
A callable returning the 1-halo term of the tracer auto correlations.
The 1-halo term of the cross correlation between tracer and matter.
A callable returning the 1-halo cross-corr between tracer and matter.
The cen-sat part of the 1-halo term of the tracer auto-correlation function.
A callable returning the cen-sat part of the 1-halo term of the tracer auto-correlation function.
The satellite-satellite part of the 1-halo term of the tracer auto-correlation function.
A callable returning the satellite-satellite part of the 1-halo term of the tracer auto-correlation function.
The 2-halo term of the matter auto-correlation.
A callable returning the 2-halo term of the matter auto-correlation at arbitrary k.
The 2-halo term of the tracer auto-correlation.
A callable returning the 2-halo term of the tracer auto-correlation.
The 2-halo term of the cross-correlation between tracer and matter.
A callable returning the 2-halo cross-corr between tracer and matter.
The halo-model-derived nonlinear dark matter auto-correlation function.
A callable returning the halo-model DM auto-correlation function.
The tracer auto correlation function.
A callable returning the tracer auto correlation function.
Cross-correlation of tracer with matter.
A callable returning the cross-correlation of tracer with matter.
See
corr_auto_tracer()
.The nonlinear (from halofit) auto-correlation function of dark matter.
A callable returning the nonlinear auto-correlation function of dark matter.
The linear auto-correlation function of dark matter.
A callable returning the linear auto-correlation function of dark matter.
See
corr_auto_matter()
.Cosmographic object (
astropy.cosmology.FLRW
object), with custom cosmology fromcosmo_params
applied.The basis for the cosmology – see astropy documentation.
Parameters for the cosmology that deviate from the base cosmology passed.
The critical overdensity for collapse, \(\delta_c\).
Dimensionless power spectrum, \(\Delta_k = \frac{k^3 P(k)}{2\pi^2}\).
Disable converting mass function from builtin definition to that provided.
Step-size of log wave-numbers
log10 interval between mass bins
The differential mass function in terms of natural log of m,
len=len(m)
[units \(h^3 Mpc^{-3}\)]The differential mass function in terms of log of m,
len=len(m)
[units \(h^3 Mpc^{-3}\)]The number density of haloes,
len=len(m)
[units \(h^4 M_\odot^{-1} Mpc^{-3}\)]The width of r bin.
A string identifier for the type of halo exclusion used (or None).
Dictionary of parameters for the Exclusion model.
Instantiated model for filter/window functions.
A model for the window/filter function.
Model parameters for filter_model.
Suppress 1-halo power on scales larger than a few virial radii.
The multiplicity function, \(f(\sigma)\), for hmf_model.
The instantiated growth model.
The growth factor.
The model to use to calculate the growth function/growth rate.
Relevant parameters of the
growth_model
.Halo bias.
The concentration-mass relation.
A halo_concentration-mass relation
Dictionary of parameters for the concentration model.
The halo overdensity with respect to the critical density.
The halo overdensity with respect to the mean background.
A class containing the elements necessary to calculate halo halo_profile quantities.
Mass-normalised halo profile self-convolution, with shape (len(r), len(m)).
The halo density halo_profile model.
Dictionary of parameters for the Profile model.
Mass-normalised halo density profile, with shape (len(r), len(m)).
Mass-normalised fourier halo profile, with shape (len(k), len(m)).
The spectrum with which the halo-centre power spectrum is identified.
The width of k bin in log10.
The maximum k bin in log10.
The minimum k bin in log10.
Instantiated model for the hmf fitting function.
A model to use as the fitting function \(f(\sigma)\)
Model parameters for hmf_model.
A class representing the HOD
HOD
class.Dictionary of parameters for the HOD model.
Size of simulation volume in which to expect one halo of mass m (with 95% probability), ` len=len(m)` [units \(Mpch^{-1}\)]
Wavenumbers, [h/Mpc]
The wave-numbers at which halo-model power spectra are calculated.
A callable returning the linear power as a function of k (in h/Mpc).
Maximum (natural) log wave-number,
k
[h/Mpc].Minimum (natural) log wave-number,
k
[h/Mpc].Natural log of inverse mass variance,
len=len(m)
.Maximum radial separation grid [Mpc/h].
Minimum radial separation grid [Mpc/h].
Halo masses (defined via
mdef
).Average host-halo mass (in log10 units).
The nonlinear mass, nu(Mstar) = 1.
The halo mass-definition model instance.
A model to use as the mass definition.
Model parameters for mdef_model.
Mean density of universe at redshift z.
Mean density of universe at z=0, [Msun h^2 / Mpc**3]
The mean density of the tracer.
The mean density of the tracer, in the units defined in the HOD.
Spectral index of fluctuations
Effective spectral index at scale of halo radius,
len=len(m)
The cumulative mass function above m,
len=len(m)
[units \(h^3 Mpc^{-3}\)]Dimensionless nonlinear power spectrum.
Non-linear log power [units \(Mpc^3/h^3\)].
A callable returning the nonlinear (halofit) power as a function of k (in h/Mpc).
A normalised filter, such that filter.sigma(8) == sigma8
The parameter \(\nu = \left(\frac{\delta_c}{\sigma}\right)^2\),
len=len(m)
The redshift distribution of the sample.
The redshift distribution of the second sample for correlation.
Dictionary of all parameters and their current values
Normalised log power spectrum [units \(Mpc^3/h^3\)].
The halo model-derived nonlinear 1-halo dark matter auto-power spectrum.
A callable returning the halo model 1-halo DM auto-power spectrum.
The total 1-halo term of the tracer auto power spectrum.
A callable returning the total 1-halo term of the tracer auto power spectrum.
The total 1-halo cross-power spectrum between tracer and matter.
A callable returning the total 1-halo cross-power spectrum between tracer and matter.
The cen-sat part of the 1-halo term of the tracer auto-power spectrum.
A callable returning the cen-sat part of the 1-halo term of the tracer auto-power spectrum.
The satellite-satellite part of the 1-halo term of the tracer auto-power spectrum.
A callable returning the satellite-satellite part of the 1-halo term of the tracer auto-power spectrum.
The halo model 2-halo matter auto-power spectrum at
k_hm
.Return the halo model 2-halo matter auto-power spectrum at k.
The 2-halo term of the tracer auto-power spectrum.
Return the 2-halo term of the tracer auto-power spectrum at k.
The 2-halo term of the cross-power spectrum between tracer and matter.
A callable returning the 2-halo cross-power between tracer and matter.
The halo-model-derived nonlinear dark power auto-power spectrum.
A callable returning the halo-model DM auto-power spectrum.
Auto-power spectrum of the tracer.
Cross-power spectrum between tracer and matter.
A callable returning cross-power spectrum of tracer and matter.
See
power_auto_tracer()
.See
corr_auto_tracer()
.See
power_auto_matter()
.Physical separation grid [Mpc/h].
The radii corresponding to the masses m.
Mass density in haloes >m,
len=len(m)
[units \(M_\odot h^2 Mpc^{-3}\)]Mass density in haloes <m,
len=len(m)
[units \(M_\odot h^2 Mpc^{-3}\)]If True, r bins are logarithmically distributed.
Maximum length scale.
Minimum length scale.
Number of r bins.
The total fraction of tracers that are satellites.
The mean satellite occupation of the tracer as a function of halo mass.
A class containing relevant methods to calculate scale-dependent bias corrections.
Return the correction for scale dependancy of bias.
Model of Scale Dependant Bias.
Dictionary of parameters for Scale Dependant Bias.
The sqrt of the mass variance at z,
len=len(m)
.RMS linear density fluctuations in spheres of radius 8 Mpc/h
Whether to use updated HALOFIT coefficients from Takahashi+12.
Angular separations, [Rad].
If angular separations are logarithmically distributed.
Maximum angular separations [Rad].
Minimum angular separations [Rad].
Number of angular separations [Rad].
The mean total occupation of the tracer as a function of halo mass.
The concentrations corresponding to
m()
.Concentration-mass relation model instance.
The tracer concentration-mass relation.
Dictionary of parameters for tracer concentration-mass relation.
Mean density of the tracer, ONLY if passed directly.
The total tracer density in halos of mass m.
The minimum halo mass of integrals over the tracer population.
Object to calculate quantities of the tracer profile.
The mass-normalised profile self-convolution of the tracer, shape (len(r), len(m)).
The tracer density halo_profile model.
Dictionary of parameters for the tracer Profile model.
The mass-normalised density profile of the tracer, with shape (len(r), len(m)).
The mass-normalised fourier density profile of the tracer, shape (len(k), len(m)).
The instantiated transfer model
Normalised CDM log transfer function.
Defines which transfer function model to use.
Relevant parameters of the transfer_model.
Number of radial separation grids [Mpc/h].
Radial separation grid [Mpc/h].
Radial distance grid (corresponds to zvec) [Mpc/h].
Redshift.
Maximum redshift.
Minimum redshift.
Number of redshift bins.
Redshift distribution grid.