![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
The namespace of the number counts modelling More...
Classes | |
struct | STR_NC_data_model |
the structure STR_NC_data_model More... | |
struct | STR_NCSF_data_model |
the structure STR_NCSF_data_model More... | |
class | Modelling_NumberCounts |
The class Modelling_NumberCounts. More... | |
class | Modelling_NumberCounts1D |
The class Modelling_NumberCounts1D. More... | |
class | Modelling_NumberCounts1D_Mass |
The class Modelling_NumberCounts1D_Mass. More... | |
class | Modelling_NumberCounts1D_MassProxy |
The class Modelling_NumberCounts1D_MassProxy. More... | |
class | Modelling_NumberCounts1D_Redshift |
The class Modelling_NumberCounts1D_Redshift. More... | |
class | Modelling_NumberCounts1D_Size |
The class Modelling_NumberCounts1D_Size. More... | |
class | Modelling_NumberCounts2D |
The class Modelling_NumberCounts2D. More... | |
class | Modelling_NumberCounts2D_RedshiftMass |
The class Modelling_NumberCounts2D_RedshiftMass. More... | |
Functions | |
double | Filter_sigmaR (const double kk, const double radius) |
the filter to compute \(\sigma(R)\) More... | |
double | Filter_dsigmaR (const double kk, const double radius) |
the filter to compute \(\mathrm{d} \sigma(R) / \mathrm{d} R\) More... | |
void | sigmaM_dlnsigmaM (double &sigmaM, double &dlnsigmaM, const double mass, const cbl::glob::FuncGrid interp_Pk, const double kmax, const double rho) |
compute \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \) More... | |
void | sigmaM_dlnsigmaM (std::vector< double > &sigmaM, std::vector< double > &dlnsigmaM, const std::vector< double > mass, const std::vector< double > kk, const std::vector< double > Pk, const std::string interpType, const double kmax, const double rho) |
compute \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \) More... | |
std::vector< cbl::glob::FuncGrid > | sigmaM_dlnsigmaM (const std::vector< double > mass, cosmology::Cosmology cosmology, const std::vector< double > kk, const std::vector< double > Pk, const std::string interpType, const double kmax) |
compute \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \) and return them as interpolating function More... | |
double | mass_function (const double mass, cosmology::Cosmology cosmology, const double redshift, const std::string model_MF, const bool store_output, const double Delta, const bool isDelta_critical, const cbl::glob::FuncGrid interp_Pk, const double kmax) |
compute the mass function More... | |
std::vector< double > | mass_function (const std::vector< double > mass, cosmology::Cosmology cosmology, const double redshift, const std::string model_MF, const bool store_output, const double Delta, const bool isDelta_critical, const std::vector< double > kk, const std::vector< double > Pk, const std::string interpType, const double kmax) |
compute the mass function More... | |
std::vector< std::vector< double > > | mass_function (const std::vector< double > redshift, const std::vector< double > mass, cosmology::Cosmology cosmology, const std::string model_MF, const bool store_output, const double Delta, const bool isDelta_critical, const std::vector< double > kk, const std::vector< double > Pk, const std::string interpType, const double kmax) |
compute the mass function as function of mass and redshift More... | |
std::vector< double > | size_function (cosmology::Cosmology cosmology, const std::vector< double > radii, const double redshift, const std::string model, const double b_eff, double slope=0.854, double offset=0.420, const double deltav_NL=-0.795, const double del_c=1.69, const std::string method_Pk="Eisensteinhu", const bool store_output=true, const std::string output_root="test", const std::string interpType="Linear", const double k_max=100., const std::string input_file=par::defaultString, const bool is_parameter_file=true) |
the void size function More... | |
double | number_counts (const double redshift_min, const double redshift_max, const double Mass_min, const double Mass_max, cosmology::Cosmology cosmology, const double Area, const std::string model_MF, const bool store_output, const double Delta, const bool isDelta_critical, const glob::FuncGrid interp_sigmaM, const glob::FuncGrid interp_DlnsigmaM) |
compute the number counts as function of mass and redshift More... | |
double | counts_proxy (const double alpha, const double beta, const double gamma, const double scatter0, const double scatterM, const double scatterM_exp, const double scatterz, const double scatterz_exp, const double z_bias, const double proxy_bias, const double z_err, const double proxy_err, const double Plambda_a, const double Plambda_b, const double Plambda_c, std::function< double(const double, const double, const std::shared_ptr< void >)> fz, std::function< double(const double, const double)> z_error, std::function< double(const double, const double)> proxy_error, double(*response_fact)(const double, const double, const double, const double, const std::string, const double, const std::string, std::shared_ptr< void >), const double redshift_min, const double redshift_max, const double proxy_min, const double proxy_max, cbl::cosmology::Cosmology cosmology, const double Area, const std::string model_MF, const std::string model_bias, const bool store_output, const double Delta, const bool isDelta_critical, const cbl::glob::FuncGrid interp_sigmaM, const cbl::glob::FuncGrid interp_DlnsigmaM, const cbl::glob::FuncGrid interp_DN, const double proxy_pivot, const double z_pivot, const double mass_pivot, const double log_base, const double weight) |
compute the number counts as function of mass proxy and redshift More... | |
std::vector< double > | mass_function_mass (const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the mass function as a function of the mass More... | |
std::vector< double > | number_density_mass (const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number density as a function of the mass More... | |
std::vector< double > | number_counts_mass (const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number counts as a function of the mass More... | |
std::vector< double > | number_counts_mass_snapshot (const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number counts as a function of the mass for a simulation snapshot More... | |
std::vector< double > | number_counts_proxy (const std::vector< double > proxy, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number counts as a function of the mass proxy More... | |
std::vector< double > | number_density_redshift (const std::vector< double > redshift, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number density as a function of the redshift More... | |
std::vector< double > | number_counts_redshift (const std::vector< double > redshift, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number counts as a function of redshift More... | |
std::vector< double > | size_function_model (const std::vector< double > radii, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the size function as a function of the void effective radii More... | |
std::vector< std::vector< double > > | mass_function_redshift_mass (const std::vector< double > redshift, const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the mass function as a function of the mass and redshift More... | |
std::vector< std::vector< double > > | number_density_redshift_mass (const std::vector< double > redshift, const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number density as a function of the mass and redshift More... | |
std::vector< std::vector< double > > | number_counts_redshift_mass (const std::vector< double > redshift, const std::vector< double > mass, const std::shared_ptr< void > inputs, std::vector< double > ¶meter) |
compute the number counts as a function of the mass and redshift More... | |
The namespace of the number counts modelling
The modelling::numbercounts namespace contains all the functions and classes to model number counts
double cbl::modelling::numbercounts::counts_proxy | ( | const double | alpha, |
const double | beta, | ||
const double | gamma, | ||
const double | scatter0, | ||
const double | scatterM, | ||
const double | scatterM_exp, | ||
const double | scatterz, | ||
const double | scatterz_exp, | ||
const double | z_bias, | ||
const double | proxy_bias, | ||
const double | z_err, | ||
const double | proxy_err, | ||
const double | Plambda_a, | ||
const double | Plambda_b, | ||
const double | Plambda_c, | ||
std::function< double(const double, const double, const std::shared_ptr< void >)> | fz, | ||
std::function< double(const double, const double)> | z_error, | ||
std::function< double(const double, const double)> | proxy_error, | ||
double(*)(const double, const double, const double, const double, const std::string, const double, const std::string, std::shared_ptr< void >) | response_fact, | ||
const double | redshift_min, | ||
const double | redshift_max, | ||
const double | proxy_min, | ||
const double | proxy_max, | ||
cbl::cosmology::Cosmology | cosmology, | ||
const double | Area, | ||
const std::string | model_MF, | ||
const std::string | model_bias, | ||
const bool | store_output, | ||
const double | Delta, | ||
const bool | isDelta_critical, | ||
const cbl::glob::FuncGrid | interp_sigmaM, | ||
const cbl::glob::FuncGrid | interp_DlnsigmaM, | ||
const cbl::glob::FuncGrid | interp_DN, | ||
const double | proxy_pivot, | ||
const double | z_pivot, | ||
const double | mass_pivot, | ||
const double | log_base, | ||
const double | weight | ||
) |
compute the number counts as function of mass proxy and redshift
alpha | alpha |
beta | beta |
gamma | gamma |
scatter0 | scatter0 |
scatterM | scatterM |
scatterM_exp | scatterM_exp |
scatterz | scatterz |
scatterz_exp | scatterz_exp |
z_bias | redshift bias |
proxy_bias | mass proxy bias |
z_err | abs. or rel. error on z |
proxy_err | abs. or rel. error on proxy |
Plambda_a | Plambda_a |
Plambda_b | Plambda_b |
Plambda_c | Plambda_c |
fz | redshift evolution function in the scaling relation |
z_error | function returning the absolute error on the redshift |
proxy_error | function returning the absolute error on the mass proxy |
response_fact | the response function factor for the super-sample covariance |
redshift_min | minimum redshift |
redshift_max | maximum redshift |
proxy_min | minimum mass proxy |
proxy_max | maximum mass proxy |
cosmology | the cosmology |
Area | the area in degrees |
model_MF | author(s) who proposed the mass function; valid authors are: PS (Press & Schechter), ST (Sheth & Tormen), Jenkins (Jenkins et al. 2001), Warren (Warren et al. 2006), Reed, (Reed et al. 2007), Pan (Pan 2007), ShenH (halo MF by Shen et al. 2006), ShenF (filament MF by Shen et al. 2006), ShenS (sheet MF by Shen et al. 2006), Tinker (Tinker et al. 2008), Crocce (Crocce et al. 2010), Angulo_FOF (FoF MF by Angulo et al. 2012), Angulo_Sub (SUBFIND MF by Angulo et al. 2012), Watson_FOF (FoF MF by Watson et al. 2012), Watson_SOH (Spherical Overdensity halo MF by Watson et al. 2012), Manera (Manera et al. 2010), Bhattacharya (Bhattacharya et al. 2011), Courtin (Courtin et al. 2010), Peacock (by Peacock at al. 2007) |
model_bias | the bias model, used for the computation of the super-sample covariance |
store_output | if true the output files created by the Boltzmann solver are stored; if false the output files are removed |
Delta | \(\Delta\), the overdensity |
isDelta_critical | \(\rightarrow\) \(\Delta\) is the overdensity defined with respect to the critical density |
interp_sigmaM | interpolating function of \( \sigma(M)\) |
interp_DlnsigmaM | interpolating function of \( \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \) |
interp_DN | interpolated amplitude of the growing mode |
proxy_pivot | mass proxy pivot in the scaling relation |
z_pivot | redshift pivot in the scaling relation |
mass_pivot | mass pivot in the scaling relation |
log_base | logarithmic base used in the scaling relation |
weight | weight derived from the selection function |
double cbl::modelling::numbercounts::Filter_dsigmaR | ( | const double | kk, |
const double | radius | ||
) |
the filter to compute \(\mathrm{d} \sigma(R) / \mathrm{d} R\)
kk | the wave vector module |
radius | radius of the filter |
Definition at line 55 of file ModelFunction_NumberCounts.cpp.
double cbl::modelling::numbercounts::Filter_sigmaR | ( | const double | kk, |
const double | radius | ||
) |
the filter to compute \(\sigma(R)\)
kk | the wave vector module |
radius | the radius |
Definition at line 46 of file ModelFunction_NumberCounts.cpp.
double cbl::modelling::numbercounts::mass_function | ( | const double | mass, |
cosmology::Cosmology | cosmology, | ||
const double | redshift, | ||
const std::string | model_MF, | ||
const bool | store_output, | ||
const double | Delta, | ||
const bool | isDelta_critical, | ||
const cbl::glob::FuncGrid | interp_Pk, | ||
const double | kmax | ||
) |
compute the mass function
mass | the mass |
cosmology | the cosmology |
redshift | the redshift |
model_MF | author(s) who proposed the mass function; valid authors are: PS (Press & Schechter), ST (Sheth & Tormen), Jenkins (Jenkins et al. 2001), Warren (Warren et al. 2006), Reed, (Reed et al. 2007), Pan (Pan 2007), ShenH (halo MF by Shen et al. 2006), ShenF (filament MF by Shen et al. 2006), ShenS (sheet MF by Shen et al. 2006), Tinker (Tinker et al. 2008), Crocce (Crocce et al. 2010), Angulo_FOF (FoF MF by Angulo et al. 2012), Angulo_Sub (SUBFIND MF by Angulo et al. 2012), Watson_FOF (FoF MF by Watson et al. 2012), Watson_SOH (Spherical Overdensity halo MF by Watson et al. 2012), Manera (Manera et al. 2010), Bhattacharya (Bhattacharya et al. 2011), Courtin (Courtin et al. 2010), Peacock (by Peacock at al. 2007) |
store_output | if true the output files created by the Boltzmann solver are stored; if false the output files are removed |
Delta | \(\Delta\), the overdensity |
isDelta_critical | \(\rightarrow\) \(\Delta\) is the overdensity defined with respect to the critical density |
interp_Pk | function to interpolate the power spectrum |
kmax | the maximum value of the wavevector module |
Definition at line 145 of file ModelFunction_NumberCounts.cpp.
std::vector< double > cbl::modelling::numbercounts::mass_function | ( | const std::vector< double > | mass, |
cosmology::Cosmology | cosmology, | ||
const double | redshift, | ||
const std::string | model_MF, | ||
const bool | store_output, | ||
const double | Delta, | ||
const bool | isDelta_critical, | ||
const std::vector< double > | kk, | ||
const std::vector< double > | Pk, | ||
const std::string | interpType, | ||
const double | kmax | ||
) |
compute the mass function
mass | vector of masses |
cosmology | the cosmology |
redshift | the redshift |
model_MF | author(s) who proposed the mass function; valid authors are: PS (Press & Schechter), ST (Sheth & Tormen), Jenkins (Jenkins et al. 2001), Warren (Warren et al. 2006), Reed, (Reed et al. 2007), Pan (Pan 2007), ShenH (halo MF by Shen et al. 2006), ShenF (filament MF by Shen et al. 2006), ShenS (sheet MF by Shen et al. 2006), Tinker (Tinker et al. 2008), Crocce (Crocce et al. 2010), Angulo_FOF (FoF MF by Angulo et al. 2012), Angulo_Sub (SUBFIND MF by Angulo et al. 2012), Watson_FOF (FoF MF by Watson et al. 2012), Watson_SOH (Spherical Overdensity halo MF by Watson et al. 2012), Manera (Manera et al. 2010), Bhattacharya (Bhattacharya et al. 2011), Courtin (Courtin et al. 2010), Peacock (by Peacock at al. 2007) |
store_output | if true the output files created by the Boltzmann solver are stored; if false the output files are removed |
Delta | \(\Delta\), the overdensity |
isDelta_critical | \(\rightarrow\) \(\Delta\) is the overdensity defined with respect to the critical density |
kk | vector of wavevector modules |
Pk | vector containing the dark matter power spectrum |
interpType | the kind of interpolation |
kmax | the maximum value of the wavevector module |
Definition at line 161 of file ModelFunction_NumberCounts.cpp.
std::vector< std::vector< double > > cbl::modelling::numbercounts::mass_function | ( | const std::vector< double > | redshift, |
const std::vector< double > | mass, | ||
cosmology::Cosmology | cosmology, | ||
const std::string | model_MF, | ||
const bool | store_output, | ||
const double | Delta, | ||
const bool | isDelta_critical, | ||
const std::vector< double > | kk, | ||
const std::vector< double > | Pk, | ||
const std::string | interpType, | ||
const double | kmax | ||
) |
compute the mass function as function of mass and redshift
redshift | vector of redshift |
mass | vector of masses |
cosmology | the cosmology |
model_MF | author(s) who proposed the mass function; valid authors are: PS (Press & Schechter), ST (Sheth & Tormen), Jenkins (Jenkins et al. 2001), Warren (Warren et al. 2006), Reed, (Reed et al. 2007), Pan (Pan 2007), ShenH (halo MF by Shen et al. 2006), ShenF (filament MF by Shen et al. 2006), ShenS (sheet MF by Shen et al. 2006), Tinker (Tinker et al. 2008), Crocce (Crocce et al. 2010), Angulo_FOF (FoF MF by Angulo et al. 2012), Angulo_Sub (SUBFIND MF by Angulo et al. 2012), Watson_FOF (FoF MF by Watson et al. 2012), Watson_SOH (Spherical Overdensity halo MF by Watson et al. 2012), Manera (Manera et al. 2010), Bhattacharya (Bhattacharya et al. 2011), Courtin (Courtin et al. 2010), Peacock (by Peacock at al. 2007) |
store_output | if true the output files created by the Boltzmann solver are stored; if false the output files are removed |
Delta | \(\Delta\), the overdensity |
isDelta_critical | \(\rightarrow\) \(\Delta\) is the overdensity defined with respect to the critical density |
kk | vector of wavevector modules |
Pk | vector containing the dark matter power spectrum |
interpType | the kind of interpolation |
kmax | the maximum value of the wavevector module |
Definition at line 188 of file ModelFunction_NumberCounts.cpp.
std::vector< double > cbl::modelling::numbercounts::mass_function_mass | ( | const std::vector< double > | mass, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the mass function as a function of the mass
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 45 of file ModelFunction_NumberCounts1D_Mass.cpp.
std::vector< std::vector< double > > cbl::modelling::numbercounts::mass_function_redshift_mass | ( | const std::vector< double > | redshift, |
const std::vector< double > | mass, | ||
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the mass function as a function of the mass and redshift
redshift | redshift bins |
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 46 of file ModelFunction_NumberCounts2D_RedshiftMass.cpp.
double cbl::modelling::numbercounts::number_counts | ( | const double | redshift_min, |
const double | redshift_max, | ||
const double | Mass_min, | ||
const double | Mass_max, | ||
cosmology::Cosmology | cosmology, | ||
const double | Area, | ||
const std::string | model_MF, | ||
const bool | store_output, | ||
const double | Delta, | ||
const bool | isDelta_critical, | ||
const glob::FuncGrid | interp_sigmaM, | ||
const glob::FuncGrid | interp_DlnsigmaM | ||
) |
compute the number counts as function of mass and redshift
redshift_min | minimum redshift |
redshift_max | maximum redshift |
Mass_min | minimum mass |
Mass_max | maximum mass |
cosmology | the cosmology |
Area | the area in degrees |
model_MF | author(s) who proposed the mass function; valid authors are: PS (Press & Schechter), ST (Sheth & Tormen), Jenkins (Jenkins et al. 2001), Warren (Warren et al. 2006), Reed, (Reed et al. 2007), Pan (Pan 2007), ShenH (halo MF by Shen et al. 2006), ShenF (filament MF by Shen et al. 2006), ShenS (sheet MF by Shen et al. 2006), Tinker (Tinker et al. 2008), Crocce (Crocce et al. 2010), Angulo_FOF (FoF MF by Angulo et al. 2012), Angulo_Sub (SUBFIND MF by Angulo et al. 2012), Watson_FOF (FoF MF by Watson et al. 2012), Watson_SOH (Spherical Overdensity halo MF by Watson et al. 2012), Manera (Manera et al. 2010), Bhattacharya (Bhattacharya et al. 2011), Courtin (Courtin et al. 2010), Peacock (by Peacock at al. 2007) |
store_output | if true the output files created by the Boltzmann solver are stored; if false the output files are removed |
Delta | \(\Delta\), the overdensity |
isDelta_critical | \(\rightarrow\) \(\Delta\) is the overdensity defined with respect to the critical density |
interp_sigmaM | interpolating function of \( \sigma(M)\) |
interp_DlnsigmaM | interpolating function of \( \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \) |
Definition at line 214 of file ModelFunction_NumberCounts.cpp.
std::vector< double > cbl::modelling::numbercounts::number_counts_mass | ( | const std::vector< double > | mass, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number counts as a function of the mass
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 104 of file ModelFunction_NumberCounts1D_Mass.cpp.
std::vector< double > cbl::modelling::numbercounts::number_counts_mass_snapshot | ( | const std::vector< double > | mass, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number counts as a function of the mass for a simulation snapshot
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 139 of file ModelFunction_NumberCounts1D_Mass.cpp.
std::vector< double > cbl::modelling::numbercounts::number_counts_proxy | ( | const std::vector< double > | proxy, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number counts as a function of the mass proxy
proxy | mass proxy bin centers |
inputs | inputs to compute the predicted counts |
parameter | vector containing cosmological parameters |
Definition at line 46 of file ModelFunction_NumberCounts1D_MassProxy.cpp.
std::vector< double > cbl::modelling::numbercounts::number_counts_redshift | ( | const std::vector< double > | redshift, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number counts as a function of redshift
redshift | redshift bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 80 of file ModelFunction_NumberCounts1D_Redshift.cpp.
std::vector< std::vector< double > > cbl::modelling::numbercounts::number_counts_redshift_mass | ( | const std::vector< double > | redshift, |
const std::vector< double > | mass, | ||
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number counts as a function of the mass and redshift
redshift | redshift bins |
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 109 of file ModelFunction_NumberCounts2D_RedshiftMass.cpp.
std::vector< double > cbl::modelling::numbercounts::number_density_mass | ( | const std::vector< double > | mass, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number density as a function of the mass
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 70 of file ModelFunction_NumberCounts1D_Mass.cpp.
std::vector< double > cbl::modelling::numbercounts::number_density_redshift | ( | const std::vector< double > | redshift, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number density as a function of the redshift
redshift | redshift bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 46 of file ModelFunction_NumberCounts1D_Redshift.cpp.
std::vector< std::vector< double > > cbl::modelling::numbercounts::number_density_redshift_mass | ( | const std::vector< double > | redshift, |
const std::vector< double > | mass, | ||
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the number density as a function of the mass and redshift
redshift | redshift bins |
mass | mass bins |
inputs | inputs to compute the mass function |
parameter | vector containing cosmological parameters |
Definition at line 71 of file ModelFunction_NumberCounts2D_RedshiftMass.cpp.
std::vector< cbl::glob::FuncGrid > cbl::modelling::numbercounts::sigmaM_dlnsigmaM | ( | const std::vector< double > | mass, |
cosmology::Cosmology | cosmology, | ||
const std::vector< double > | kk, | ||
const std::vector< double > | Pk, | ||
const std::string | interpType, | ||
const double | kmax | ||
) |
compute \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \) and return them as interpolating function
mass | vector of mass used for computation |
cosmology | the cosmology |
kk | vector of wavevector modules |
Pk | vector containing the dark matter power spectrum |
interpType | the kind of interpolation |
kmax | the maximum value of the wavevector module |
Definition at line 126 of file ModelFunction_NumberCounts.cpp.
void cbl::modelling::numbercounts::sigmaM_dlnsigmaM | ( | double & | sigmaM, |
double & | dlnsigmaM, | ||
const double | mass, | ||
const cbl::glob::FuncGrid | interp_Pk, | ||
const double | kmax, | ||
const double | rho | ||
) |
compute \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \)
sigmaM | vector containing the values of \(\sigma(M)\) |
dlnsigmaM | vector containing the values of \(\mathrm{d} \ln(\sigma(M)) / \mathrm{d} M\) |
mass | the mass value |
interp_Pk | function to interpolate the power spectrum |
kmax | the maximum value of the wavevector module |
rho | the mean density of the Universe |
Definition at line 64 of file ModelFunction_NumberCounts.cpp.
void cbl::modelling::numbercounts::sigmaM_dlnsigmaM | ( | std::vector< double > & | sigmaM, |
std::vector< double > & | dlnsigmaM, | ||
const std::vector< double > | mass, | ||
const std::vector< double > | kk, | ||
const std::vector< double > | Pk, | ||
const std::string | interpType, | ||
const double | kmax, | ||
const double | rho | ||
) |
compute \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \)
sigmaM | vector containing the values of \(\sigma(M)\) |
dlnsigmaM | vector containing the values of \(\mathrm{d} \ln(\sigma(M)) / \mathrm{d} M\) |
mass | vector of mass used for computation |
kk | vector of wavevector modules |
Pk | vector containing the dark matter power spectrum |
interpType | the kind of interpolation |
kmax | the maximum value of the wavevector module |
rho | the mean density of the Universe |
Definition at line 92 of file ModelFunction_NumberCounts.cpp.
std::vector< double > cbl::modelling::numbercounts::size_function | ( | cosmology::Cosmology | cosmology, |
const std::vector< double > | radii, | ||
const double | redshift, | ||
const std::string | model, | ||
const double | b_eff, | ||
double | slope = 0.854 , |
||
double | offset = 0.420 , |
||
const double | deltav_NL = -0.795 , |
||
const double | del_c = 1.69 , |
||
const std::string | method_Pk = "Eisensteinhu" , |
||
const bool | store_output = true , |
||
const std::string | output_root = "test" , |
||
const std::string | interpType = "Linear" , |
||
const double | k_max = 100. , |
||
const std::string | input_file = par::defaultString , |
||
const bool | is_parameter_file = true |
||
) |
the void size function
cosmology | the cosmology |
radii | the void radii |
redshift | the redshift |
model | size function model name; valid choices for model name are SvdW (Sheth and van de Weygaert, 2004), linear and Vdn (Jennings et al., 2013) |
b_eff | the effective bias of the sample |
slope | first coefficent to convert the effective bias (default value set to \(0.854\)) |
offset | second coefficent to convert the effective bias (default value set to \(0.420\)) |
deltav_NL | the non linear density contrast: \(\rho_v/\rho_m\) (default value set to \(-0.795\)) |
del_c | critical value of the linear density field (default value set to \(1.06\)) |
method_Pk | method used to compute the power spectrum (i.e. the Boltzmann solver); valid choices for method_Pk are: CAMB [http://camb.info/], CLASS [http://class-code.net/], MPTbreeze-v1 [http://arxiv.org/abs/1207.1465], EisensteinHu [http://background.uchicago.edu/~whu/transfer/transferpage.html] |
store_output | if true the output files created by the Boltzmann solver are stored; if false the output files are removed |
output_root | output_root of the parameter file used to compute the power spectrum and σ(mass); it can be any name |
interpType | method to interpolate the power spectrum |
k_max | maximum wave vector module up to which the power spectrum is computed |
input_file | either the parameter file or the power spectrum file; if a parameter file is provided, i.e. input_file!=NULL and is_parameter_file=true, it will be used to compute the power spectrum; if a power spectrum file is provided, i.e. input_file!=NULL and is_parameter_file=false, then the provided power spectrum will be used directly; in both cases σ2(M) is computed by integrating the computed/provided power spectrum ignoring the cosmological parameters of the object |
is_parameter_file | true \(\rightarrow\) the input_file is a parameter file, used to compute the power spectrum with the method specified by method_Pk; false \(\rightarrow\) the input_file is a file containing the power spectrum |
Definition at line 349 of file ModelFunction_NumberCounts.cpp.
std::vector< double > cbl::modelling::numbercounts::size_function_model | ( | const std::vector< double > | radii, |
const std::shared_ptr< void > | inputs, | ||
std::vector< double > & | parameter | ||
) |
compute the size function as a function of the void effective radii
radii | radius bins |
inputs | inputs to compute the size function |
parameter | vector containing the cosmological parameters and eventually the bias used to re-parameterise the void size function |
Definition at line 44 of file ModelFunction_NumberCounts1D_Size.cpp.