CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
ModelFunction_TwoPointCorrelation1D_monopole.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2016 by Federico Marulli and Alfonso Veropalumbo *
3  * federico.marulli3@unibo.it *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public *
16  * License along with this program; if not, write to the Free *
17  * Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ********************************************************************/
20 
35 #ifndef __MODFUNCTWOP1DMON__
36 #define __MODFUNCTWOP1DMON__
37 
39 
40 
41 // ============================================================================
42 
43 
44 namespace cbl {
45 
46  namespace modelling {
47 
48  namespace twopt {
49 
79  std::vector<double> xi0_BAO_sigmaNL (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
80 
113  std::vector<double> xi0_linear (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
114 
147  std::vector<double> xi0_linear_LinearPoint (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
148 
166  std::vector<double> xi0_polynomial_LinearPoint (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
167 
196  std::vector<double> xi0_linear_sigma8_bias (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
197 
198 
231  std::vector<double> xi0_linear_cosmology (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
232 
263  std::vector<double> xi0_damped_bias_sigmaz (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
264 
300  std::vector<double> xi0_damped_scaling_relation_sigmaz (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
301 
328  std::vector<double> xi0_damped_scaling_relation_sigmaz_cosmology (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
329 
357  std::vector<double> xi0_linear_sigma8_clusters (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
358 
387  std::vector<double> xi0_linear_one_cosmo_par_clusters (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
388 
417  std::vector<double> xi0_linear_two_cosmo_pars_clusters (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
418 
445  std::vector<double> xi0_linear_cosmology_clusters (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
446 
474  std::vector<double> xi0_linear_bias_cosmology (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
475 
511  std::vector<double> xi0_linear_cosmology_clusters_selection_function (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
512 
513 
518 
542  double Ncen (const double Mass, const double lgMmin, const double sigmalgM);
543 
575  double Nsat (const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha);
576 
607  double Navg (const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha);
608 
651  double ng (const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha, const std::shared_ptr<void> inputs);
652 
687  double bias (const double Mmin, const double sigmalgM, const double M0, const double M1, const double alpha, const std::shared_ptr<void> inputs);
688 
722  double NcNs (const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha);
723 
757  double NsNs1 (const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha);
758 
759 
799  double Pk_cs (const double kk, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
800 
840  double Pk_ss (const double kk, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
841 
866  double Pk_1halo (const double kk, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
867 
911  double Pk_2halo (const double kk, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
912 
935  double Pk_HOD (const double kk, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
936 
987  std::vector<double> xi_1halo (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
988 
1032  std::vector<double> xi_2halo (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
1033 
1056  std::vector<double> xi_HOD (const std::vector<double> rad, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
1057 
1112  double xi_zspace (FunctionVectorVectorPtrVectorRef func, const double rp, const double pi, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
1113 
1162  double xi_1halo_zspace (const double rp, const double pi, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
1163 
1212  double xi_2halo_zspace (const double rp, const double pi, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
1213 
1247  double xi_HOD_zspace (const double rp, const double pi, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
1248 
1250 
1251  }
1252  }
1253 }
1254 
1255 #endif
Global functions to model 1D two-point correlation functions of any type.
static const double pi
: the ratio of a circle's circumference to its diameter
Definition: Constants.h:199
static const double alpha
: the fine-structure constant
Definition: Constants.h:233
std::vector< double > xi0_polynomial_LinearPoint(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function
std::vector< double > xi0_linear(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function
double Nsat(const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha)
the average number of satellite galaxies hosted in a dark matter halo of a given mass
std::vector< double > xi0_linear_bias_cosmology(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function
std::vector< double > xi0_linear_two_cosmo_pars_clusters(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function, the bias is computed by the input clust...
std::vector< double > xi0_damped_scaling_relation_sigmaz_cosmology(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
the damped two-point correlation monopole; from Sereno et al. 2015
double Navg(const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha)
the average number of galaxies hosted in a dark matter halo of a given mass
double NsNs1(const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha)
the mean number of satellite-satellite galaxy pairs
double Pk_ss(const double kk, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the satellite-satellite part of the 1-halo term of the power spectrum
double NcNs(const double Mass, const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha)
the mean number of central-satellite galaxy pairs
std::vector< double > xi0_damped_scaling_relation_sigmaz(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
the damped two-point correlation monopole; from Sereno et al. 2015
double xi_HOD_zspace(const double rp, const double pi, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
HOD model of the redshift-space monopole of the two-point correlation function.
std::vector< double > xi_HOD(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
HOD model of the monopole of the two-point correlation function.
std::vector< double > xi0_linear_cosmology_clusters_selection_function(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the redshift-space two-point correlation function of galaxy clusters,...
double Pk_1halo(const double kk, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the 1-halo term of the power spectrum
double xi_2halo_zspace(const double rp, const double pi, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the 2-halo term of the redshift-space monopole of the two-point correlation function
std::vector< double > xi0_linear_one_cosmo_par_clusters(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function, the bias is computed by the input clust...
std::vector< double > xi0_damped_bias_sigmaz(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
the damped two-point correlation monopole; from Sereno et al. 2015
std::vector< double > xi0_BAO_sigmaNL(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the BAO signal in the monopole of the two-point correlation function
double xi_1halo_zspace(const double rp, const double pi, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the 1-halo term of the redshift-space monopole of the two-point correlation function
double xi_zspace(FunctionVectorVectorPtrVectorRef func, const double rp, const double pi, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
function used to compute the redshift-space monopole of the two-point correlation function
double Ncen(const double Mass, const double lgMmin, const double sigmalgM)
the average number of central galaxies hosted in a dark matter halo of a given mass
std::vector< double > xi_2halo(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the 2-halo term of the monopole of the two-point correlation function
double Pk_cs(const double kk, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the central-satellite part of the 1-halo term of the power spectrum
std::vector< double > xi0_linear_cosmology_clusters(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function, the bias is computed by the input clust...
double Pk_HOD(const double kk, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
HOD model of the power spectrum.
std::vector< double > xi0_linear_sigma8_bias(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function in redshift space
double Pk_2halo(const double kk, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the 2-halo term of the power spectrum
std::vector< double > xi0_linear_sigma8_clusters(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function, the bias is computed by the input clust...
std::vector< double > xi0_linear_cosmology(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function
double bias(const double Mmin, const double sigmalgM, const double M0, const double M1, const double alpha, const std::shared_ptr< void > inputs)
the mean galaxy bias
std::vector< double > xi_1halo(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the 1-halo term of the monopole of the two-point correlation function
double ng(const double lgMmin, const double sigmalgM, const double lgM0, const double lgM1, const double alpha, const std::shared_ptr< void > inputs)
the galaxy number density
std::vector< double > xi0_linear_LinearPoint(const std::vector< double > rad, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the monopole of the two-point correlation function
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
T Mass(const T RR, const T Rho)
the mass of a sphere of a given radius and density
Definition: Func.h:1243
std::function< std::vector< double >std::vector< double >, std::shared_ptr< void >, std::vector< double > &)> FunctionVectorVectorPtrVectorRef
typedef of a function returning a vector with a vector, a pointer and a vector reference in input
Definition: Kernel.h:705