![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
Generic functions that use one or more classes of the CosmoBolognaLib. More...
#include "ThreePointCorrelation.h"
Go to the source code of this file.
Namespaces | |
cbl | |
The global namespace of the CosmoBolognaLib | |
Functions | |
Generic functions that use the class Catalogue | |
catalogue::Catalogue | cbl::operator+ (const catalogue::Catalogue &c1, const catalogue::Catalogue &c2) |
overloading of the + operator, to sum two catalogues More... | |
Generic functions that use the class Cosmology | |
void | cbl::Vmax_DC_distribution (std::vector< double > &dc, std::vector< double > &nObj, const std::vector< double > D_C, const std::vector< double > zobj_min, const std::vector< double > zobj_max, const double z_min, const double z_max, const double zbin_min, const double zbin_max, cosmology::Cosmology &cosm, const double Area, const int nObjRan, const bool norm=1, const std::string file_Vmax=par::defaultString, const double delta_dc_Vmax=100., const int seed=3213) |
get a smoothed distribution of comoving distances, estimated with the Vmax method More... | |
double | cbl::AP_shift_r (const double redshift, const cosmology::Cosmology &cosm1, const cosmology::Cosmology &cosm2) |
the Alcock-Pacinski factor used to shift comoving distances More... | |
double | cbl::AP_shift_rp (const double redshift, const cosmology::Cosmology &cosm1, const cosmology::Cosmology &cosm2) |
the Alcock-Pacinski factor used to shift comoving distances perpendicular to the line-of-sight, rp More... | |
double | cbl::AP_shift_pi (const double redshift, const cosmology::Cosmology &cosm1, const cosmology::Cosmology &cosm2) |
the Alcock-Pacinski factor used to shift comoving distances parallel to the line-of-sight, π More... | |
void | cbl::max_separations_AP (const double Rp_max, const double Pi_max, const double redshift, const cosmology::Cosmology &cosm1, const std::vector< cosmology::Cosmology > &cosm2, double &rpM_AP, double &piM_AP, double &rM_AP) |
the maximum comoving separations to be used for the AP test, for a given set of test cosmologies More... | |
double | cbl::converted_xi (const double RR, const double redshift, const std::vector< double > rr, const std::vector< double > Xi, const cosmology::Cosmology &cosm1, const cosmology::Cosmology &cosm2, const bool direction) |
the 1D two-point correlation function converted from one cosmology to another one More... | |
double | cbl::converted_xi (const double RP, const double PI, const double redshift, const std::vector< double > rp, const std::vector< double > pi, const std::vector< std::vector< double > > Xi, const cosmology::Cosmology &cosm1, const cosmology::Cosmology &cosm2, const bool direction) |
the 2D two-point correlation function converted from one cosmology to another one More... | |
Generic functions that use one or more classes of the CosmoBolognaLib | |
void | cbl::redshift_range (const double mean_redshift, const double boxSide, cosmology::Cosmology &real_cosm, double &redshift_min, double &redshift_max) |
compute the redsfhit range of a simulation box centered at z=mean_redshift More... | |
double | cbl::volume (const double boxSize, const int frac, const double Bord, const double mean_redshift, cosmology::Cosmology &real_cosm) |
get the volume of a simulation box More... | |
void | cbl::coord_zSpace (std::vector< double > &ra, std::vector< double > &dec, std::vector< double > &redshift, std::vector< double > &xx, std::vector< double > &yy, std::vector< double > &zz, const std::vector< double > vx, const std::vector< double > vy, const std::vector< double > vz, const double sigmaV, cosmology::Cosmology &real_cosm, const double mean_redshift, const double redshift_min, const double redshift_max, const int seed=3213) |
convert a set of coordinates from real-space to redshift-space More... | |
void | cbl::create_mocks (const std::vector< double > xx, const std::vector< double > yy, const std::vector< double > zz, const std::vector< double > vx, const std::vector< double > vy, const std::vector< double > vz, const std::vector< double > var1, const std::vector< double > var2, const std::vector< double > var3, const std::string output_dir, const double boxSize, const int frac, const double Bord, const double mean_redshift, cosmology::Cosmology &real_cosm, const int REAL, const double sigmaV, const int idum, double &Volume) |
create a mock catalogue, subdividing a box into sub-boxes and recentering More... | |
void | cbl::set_ObjectRegion_SubBoxes (catalogue::Catalogue &data, const int nx, const int ny, const int nz) |
set the object region in sub-boxes More... | |
void | cbl::set_ObjectRegion_mangle (catalogue::Catalogue &data, const int nSamples, const std::string polygonfile) |
set the object region in sub-regions using mangle More... | |
void | cbl::set_ObjectRegion_SubBoxes (catalogue::Catalogue &data, catalogue::Catalogue &random, const int nx, const int ny, const int nz) |
set the object region in sub-boxes More... | |
std::vector< double > | cbl::colatitude (std::vector< double > latitude) |
convert to colatitude More... | |
void | cbl::set_ObjectRegion_Tiles_Redshift (catalogue::Catalogue &data, catalogue::Catalogue &random, const int nz) |
set data and random objects' regions given R.A.-Dec tiles and a number of redshift sub-samples. The user must set the identification number of the tiles (cbl::catalogue::Var::_Region_), with cbl::catalogue::Catalogue::set_region(), both in the input data catalogue and in the random catalogue. More... | |
void | cbl::set_ObjectRegion_RaDec (catalogue::Catalogue &data, const int nCells_Ra, const int nCells_Dec, const bool use_colatitude=true) |
set the object region in angular SubBoxes More... | |
void | cbl::set_ObjectRegion_RaDec (catalogue::Catalogue &data, catalogue::Catalogue &random, const int nCells_Ra, const int nCells_Dec, const bool use_colatitude=true) |
set the object region in angular SubBoxes More... | |
void | cbl::set_ObjectRegion_mangle (catalogue::Catalogue &data, catalogue::Catalogue &random, const int nSamples, const std::string polygonfile) |
set the object region in sub-regions using mangle More... | |
void | cbl::set_ObjectRegion_SDSS_stripes (catalogue::Catalogue &data, catalogue::Catalogue &random) |
set the object region in SDSS stripes More... | |
void | cbl::check_regions (catalogue::Catalogue &data, catalogue::Catalogue &random) |
check if the subdivision process produced the correct results More... | |
Generic functions for density field reconstruction | |
void | cbl::reconstruction_fourier_space (const catalogue::Catalogue data, const catalogue::Catalogue random, const bool random_RSD, const cosmology::Cosmology cosmology, const double redshift, const double bias, const double cell_size, const double smoothing_radius, const int interpolation_type=0) |
compute the non linear displacements of the density field More... | |
catalogue::Catalogue | cbl::displaced_catalogue (const catalogue::Catalogue input_catalogue) |
return a sample with objects displaced, according to the internal variables m_x_displacement, m_y_displacement, m_z_displacement More... | |
Functions to provide 2PCF/3PCF forecasts | |
std::vector< double > | cbl::fit_covariance_matrix_2PCF_monopole (const std::vector< double > mean, const std::vector< std::vector< double >> mock_xi0, const bool doJK, const cbl::cosmology::Cosmology cosmology, const double nObjects, const double Volume, const double bias, const double redshift, const double rMin, const double rMax, const int nbins, const cbl::BinType bin_type, const std::string method_Pk="CAMB", const double sigma_NL=0., const bool NL=true) |
fit the input covariance matrix using the gaussian model, varying the number of objects and the volume of the sample More... | |
std::shared_ptr< cbl::data::Data > | cbl::generate_mock_2PCF_monopole (const cbl::cosmology::Cosmology cosmology, const double bias, const double nObjects, const double Volume, const double redshift, const double rMin, const double rMax, const int nbins, const cbl::BinType bin_type, const std::string method_Pk="CAMB", const double sigma_NL=0., const bool NL=true) |
generate mock measurementes of the 2PCF monopole from gaussian covariance matrix More... | |
std::shared_ptr< cbl::data::Data > | cbl::generate_mock_2PCF_multipoles (const cbl::cosmology::Cosmology cosmology, const double bias, const double nObjects, const double Volume, const double redshift, const double rMin, const double rMax, const int nbins, const cbl::BinType bin_type, const std::string method_Pk="CAMB", const double sigma_NL=0., const bool NL=true) |
generate mock measurementes of the 2PCF multipoles from gaussian covariance matrix More... | |
Generic functions that use one or more classes of the CosmoBolognaLib.
This file contains the prototypes of a set of generic functions that use one or more classes of the CosmoBolognaLib
Definition in file GlobalFunc.h.