try {
const std::string file_catalogue = "../input/cat.dat";
const double N_R = 3.;
const double rpMin = 10.;
const double rpMax = 30.;
const int nbins_D1 = 3;
const double shift_D1 = 0.5;
const double piMin = 0.;
const double piMax = 50.;
const int nbins_D2 = 10;
const double shift_D2 = 0.5;
const double piMax_integral = 50.;
const std::string dir = "../output/";
const std::string file = "xi_projected.dat";
const auto TwoP =
cbl::measure::twopt::TwoPointCorrelation::Create(
cbl::measure::twopt::TwoPType::_projected_, catalogue, random_catalogue,
cbl::BinType::_logarithmic_, rpMin, rpMax, nbins_D1, shift_D1, piMin, piMax, nbins_D2, shift_D2, piMax_integral);
TwoP->write(dir, file);
}
return 0;
}
int main()
main function to create the logo of the CosmoBolognaLib
The class TwoPointCorrelation1D.
const char * what() const noexcept override
the error description
static std::shared_ptr< TwoPointCorrelation > Create(const TwoPType type, const catalogue::Catalogue data, const catalogue::Catalogue random, const BinType binType, const double Min, const double Max, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr, const bool compute_extra_info=false, const double random_dilution_fraction=1.)
static factory used to construct two-point correlation functions of any type
@ _createRandom_box_
random catalogue with cubic geometry (or parallelepiped) in comoving coordinates
@ _Planck15_
Planck collaboration 2015, paper XIII: Table 4, TT,TE,EE+lowP+lensing.
@ _projected_
the projected two-point correlation function, w(rp)
@ _Poisson_
Poissonian error.
@ _observed_
observed coordinates (R.A., Dec, redshift)
@ _logarithmic_
logarithmic binning