CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
cbl::modelling::numbercounts Namespace Reference

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::FuncGridsigmaM_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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 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 > &parameter)
 compute the number counts as a function of the mass and redshift More...
 

Detailed Description

The namespace of the number counts modelling

The modelling::numbercounts namespace contains all the functions and classes to model number counts

Function Documentation

◆ counts_proxy()

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

Parameters
alphaalpha
betabeta
gammagamma
scatter0scatter0
scatterMscatterM
scatterM_expscatterM_exp
scatterzscatterz
scatterz_expscatterz_exp
z_biasredshift bias
proxy_biasmass proxy bias
z_errabs. or rel. error on z
proxy_errabs. or rel. error on proxy
Plambda_aPlambda_a
Plambda_bPlambda_b
Plambda_cPlambda_c
fzredshift evolution function in the scaling relation
z_errorfunction returning the absolute error on the redshift
proxy_errorfunction returning the absolute error on the mass proxy
response_factthe response function factor for the super-sample covariance
redshift_minminimum redshift
redshift_maxmaximum redshift
proxy_minminimum mass proxy
proxy_maxmaximum mass proxy
cosmologythe cosmology
Areathe area in degrees
model_MFauthor(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_biasthe bias model, used for the computation of the super-sample covariance
store_outputif 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_sigmaMinterpolating function of \( \sigma(M)\)
interp_DlnsigmaMinterpolating function of \( \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \)
interp_DNinterpolated amplitude of the growing mode
proxy_pivotmass proxy pivot in the scaling relation
z_pivotredshift pivot in the scaling relation
mass_pivotmass pivot in the scaling relation
log_baselogarithmic base used in the scaling relation
weightweight derived from the selection function
Returns
values of the mass function as a function of redshift and mass proxy

◆ Filter_dsigmaR()

double cbl::modelling::numbercounts::Filter_dsigmaR ( const double  kk,
const double  radius 
)

the filter to compute \(\mathrm{d} \sigma(R) / \mathrm{d} R\)

Parameters
kkthe wave vector module
radiusradius of the filter
Returns
the value of the filter to compute \(\mathrm{d} \sigma(R) / \mathrm{d} R\)

Definition at line 55 of file ModelFunction_NumberCounts.cpp.

◆ Filter_sigmaR()

double cbl::modelling::numbercounts::Filter_sigmaR ( const double  kk,
const double  radius 
)

the filter to compute \(\sigma(R)\)

Parameters
kkthe wave vector module
radiusthe radius
Returns
the value of the top-hat filter

Definition at line 46 of file ModelFunction_NumberCounts.cpp.

◆ mass_function() [1/3]

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

Parameters
massthe mass
cosmologythe cosmology
redshiftthe redshift
model_MFauthor(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_outputif 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_Pkfunction to interpolate the power spectrum
kmaxthe maximum value of the wavevector module
Returns
value of the mass function

Definition at line 145 of file ModelFunction_NumberCounts.cpp.

◆ mass_function() [2/3]

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

Parameters
massvector of masses
cosmologythe cosmology
redshiftthe redshift
model_MFauthor(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_outputif 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
kkvector of wavevector modules
Pkvector containing the dark matter power spectrum
interpTypethe kind of interpolation
kmaxthe maximum value of the wavevector module
Returns
values of the mass function

Definition at line 161 of file ModelFunction_NumberCounts.cpp.

◆ mass_function() [3/3]

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

Parameters
redshiftvector of redshift
massvector of masses
cosmologythe cosmology
model_MFauthor(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_outputif 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
kkvector of wavevector modules
Pkvector containing the dark matter power spectrum
interpTypethe kind of interpolation
kmaxthe maximum value of the wavevector module
Returns
values of the mass function as a function of redshift and mass

Definition at line 188 of file ModelFunction_NumberCounts.cpp.

◆ mass_function_mass()

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

Parameters
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the mass function as a function of mass

Definition at line 45 of file ModelFunction_NumberCounts1D_Mass.cpp.

◆ mass_function_redshift_mass()

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

Parameters
redshiftredshift bins
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the mass function as a function of redshift and mass

Definition at line 46 of file ModelFunction_NumberCounts2D_RedshiftMass.cpp.

◆ number_counts()

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

Parameters
redshift_minminimum redshift
redshift_maxmaximum redshift
Mass_minminimum mass
Mass_maxmaximum mass
cosmologythe cosmology
Areathe area in degrees
model_MFauthor(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_outputif 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_sigmaMinterpolating function of \( \sigma(M)\)
interp_DlnsigmaMinterpolating function of \( \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \)
Returns
values of the mass function as a function of redshift and mass

Definition at line 214 of file ModelFunction_NumberCounts.cpp.

◆ number_counts_mass()

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

Parameters
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number counts as a function of mass

Definition at line 104 of file ModelFunction_NumberCounts1D_Mass.cpp.

◆ number_counts_mass_snapshot()

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

Parameters
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number counts as a function of mass

Definition at line 139 of file ModelFunction_NumberCounts1D_Mass.cpp.

◆ number_counts_proxy()

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

Parameters
proxymass proxy bin centers
inputsinputs to compute the predicted counts
parametervector containing cosmological parameters
Returns
the number counts as a function of mass proxy

Definition at line 46 of file ModelFunction_NumberCounts1D_MassProxy.cpp.

◆ number_counts_redshift()

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

Parameters
redshiftredshift bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number counts as a function of redshift

Definition at line 80 of file ModelFunction_NumberCounts1D_Redshift.cpp.

◆ number_counts_redshift_mass()

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

Parameters
redshiftredshift bins
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number counts as a function of redshift and mass

Definition at line 109 of file ModelFunction_NumberCounts2D_RedshiftMass.cpp.

◆ number_density_mass()

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

Parameters
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number density as a function of mass

Definition at line 70 of file ModelFunction_NumberCounts1D_Mass.cpp.

◆ number_density_redshift()

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

Parameters
redshiftredshift bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number density as a function of redshift

Definition at line 46 of file ModelFunction_NumberCounts1D_Redshift.cpp.

◆ number_density_redshift_mass()

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

Parameters
redshiftredshift bins
massmass bins
inputsinputs to compute the mass function
parametervector containing cosmological parameters
Returns
the number density as a function of redshift and mass

Definition at line 71 of file ModelFunction_NumberCounts2D_RedshiftMass.cpp.

◆ sigmaM_dlnsigmaM() [1/3]

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

Parameters
massvector of mass used for computation
cosmologythe cosmology
kkvector of wavevector modules
Pkvector containing the dark matter power spectrum
interpTypethe kind of interpolation
kmaxthe maximum value of the wavevector module
Returns
vector containing the interpolation function for \( \sigma(M), \mathrm{d} \ln(\sigma(M)) / \mathrm{d} M \)

Definition at line 126 of file ModelFunction_NumberCounts.cpp.

◆ sigmaM_dlnsigmaM() [2/3]

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 \)

Parameters
sigmaMvector containing the values of \(\sigma(M)\)
dlnsigmaMvector containing the values of \(\mathrm{d} \ln(\sigma(M)) / \mathrm{d} M\)
massthe mass value
interp_Pkfunction to interpolate the power spectrum
kmaxthe maximum value of the wavevector module
rhothe mean density of the Universe

Definition at line 64 of file ModelFunction_NumberCounts.cpp.

◆ sigmaM_dlnsigmaM() [3/3]

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 \)

Parameters
sigmaMvector containing the values of \(\sigma(M)\)
dlnsigmaMvector containing the values of \(\mathrm{d} \ln(\sigma(M)) / \mathrm{d} M\)
massvector of mass used for computation
kkvector of wavevector modules
Pkvector containing the dark matter power spectrum
interpTypethe kind of interpolation
kmaxthe maximum value of the wavevector module
rhothe mean density of the Universe

Definition at line 92 of file ModelFunction_NumberCounts.cpp.

◆ size_function()

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

Parameters
cosmologythe cosmology
radiithe void radii
redshiftthe redshift
modelsize function model name; valid choices for model name are SvdW (Sheth and van de Weygaert, 2004), linear and Vdn (Jennings et al., 2013)
b_effthe effective bias of the sample
slopefirst coefficent to convert the effective bias (default value set to \(0.854\))
offsetsecond coefficent to convert the effective bias (default value set to \(0.420\))
deltav_NLthe non linear density contrast: \(\rho_v/\rho_m\) (default value set to \(-0.795\))
del_ccritical value of the linear density field (default value set to \(1.06\))
method_Pkmethod 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_outputif true the output files created by the Boltzmann solver are stored; if false the output files are removed
output_rootoutput_root of the parameter file used to compute the power spectrum and σ(mass); it can be any name
interpTypemethod to interpolate the power spectrum
k_maxmaximum wave vector module up to which the power spectrum is computed
input_fileeither 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_filetrue \(\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
Returns
the number density of voids as a function of radius. Volume Conserving Model, equation (17) from Jennings et al.(2013)

Definition at line 349 of file ModelFunction_NumberCounts.cpp.

◆ size_function_model()

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

Parameters
radiiradius bins
inputsinputs to compute the size function
parametervector containing the cosmological parameters and eventually the bias used to re-parameterise the void size function
Returns
the size function as a function of void size

Definition at line 44 of file ModelFunction_NumberCounts1D_Size.cpp.