35 #ifndef __TWOPOINTMON__
36 #define __TWOPOINTMON__
251 void measureBootstrap (
const int nMocks,
const std::string dir_output_pairs =
par::defaultString,
const std::vector<std::string> dir_input_pairs={},
const std::string dir_output_resample =
par::defaultString,
const bool count_dd=
true,
const bool count_rr=
true,
const bool count_dr=
true,
const bool tcount=
true,
const Estimator estimator=
Estimator::_LandySzalay_,
const double fact=0.1,
const int seed=3213)
override;
288 TwoPointCorrelation1D_monopole (
const catalogue::Catalogue data,
const catalogue::Catalogue random,
const BinType binType,
const double rMin,
const double rMax,
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.)
314 TwoPointCorrelation1D_monopole (
const catalogue::Catalogue data,
const catalogue::Catalogue random,
const BinType binType,
const double rMin,
const double rMax,
const double binSize,
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.)
417 void measure (
const ErrorType errorType=
ErrorType::_Poisson_,
const std::string dir_output_pairs=
par::defaultString,
const std::vector<std::string> dir_input_pairs={},
const std::string dir_output_resample=
par::defaultString,
const int nMocks=0,
const bool count_dd=
true,
const bool count_rr=
true,
const bool count_dr=
true,
const bool tcount=
true,
const Estimator estimator=
Estimator::_LandySzalay_,
const double fact=0.1,
const int seed=3213)
override;
433 void read (
const std::string dir,
const std::string file)
override;
The class TwoPointCorrelation1D.
The class TwoPointCorrelation1D_monopole.
TwoPointCorrelation1D_monopole()
default constructor 1D_monopole
TwoPointCorrelation1D_monopole(const catalogue::Catalogue data, const catalogue::Catalogue random, const BinType binType, const double rMin, const double rMax, const double binSize, 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.)
constructor
void measurePoisson(const std::string dir_output_pairs=par::defaultString, const std::vector< std::string > dir_input_pairs={}, const bool count_dd=true, const bool count_rr=true, const bool count_dr=true, const bool tcount=true, const Estimator estimator=Estimator::_LandySzalay_, const double fact=0.1) override
measure the monopole of the two-point correlation function with Poisson errors
void measureJackknifeTest(const std::string dir_output_pairs=par::defaultString, const std::vector< std::string > dir_input_pairs={}, const std::string dir_output_resample=par::defaultString, const bool count_dd=true, const bool count_rr=true, const bool count_dr=true, const bool tcount=true, const Estimator estimator=Estimator::_LandySzalay_, const double fact=0.1) override
measure the monopole of the two-point correlation function estimating the covariance with Jackknife r...
~TwoPointCorrelation1D_monopole()=default
default destructor
void measureJackknife(const std::string dir_output_pairs=par::defaultString, const std::vector< std::string > dir_input_pairs={}, const std::string dir_output_resample=par::defaultString, const bool count_dd=true, const bool count_rr=true, const bool count_dr=true, const bool tcount=true, const Estimator estimator=Estimator::_LandySzalay_, const double fact=0.1) override
measure the monopole of the two-point correlation function estimating the covariance with Jackknife r...
TwoPointCorrelation1D_monopole(const catalogue::Catalogue data, const catalogue::Catalogue random, const BinType binType, const double rMin, const double rMax, 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.)
constructor
void measure(const ErrorType errorType=ErrorType::_Poisson_, const std::string dir_output_pairs=par::defaultString, const std::vector< std::string > dir_input_pairs={}, const std::string dir_output_resample=par::defaultString, const int nMocks=0, const bool count_dd=true, const bool count_rr=true, const bool count_dr=true, const bool tcount=true, const Estimator estimator=Estimator::_LandySzalay_, const double fact=0.1, const int seed=3213) override
measure the monopole of the two-point correlation function (with the direct estimator)
void write(const std::string dir=par::defaultString, const std::string file=par::defaultString, const int rank=0) const override
write the monopole of the two-point correlation function
void set_parameters(const BinType binType, const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr, const bool compute_extra_info=false)
set the binning parameters
void measureBootstrap(const int nMocks, const std::string dir_output_pairs=par::defaultString, const std::vector< std::string > dir_input_pairs={}, const std::string dir_output_resample=par::defaultString, const bool count_dd=true, const bool count_rr=true, const bool count_dr=true, const bool tcount=true, const Estimator estimator=Estimator::_LandySzalay_, const double fact=0.1, const int seed=3213) override
measure the monopole of the two-point correlation function estimating the covariance with Bootstrap r...
void read(const std::string dir, const std::string file) override
read the monopole of the two-point correlation
The class TwoPointCorrelation1D.
The class TwoPointCorrelation.
std::shared_ptr< catalogue::Catalogue > random() const
get the protected member m_random
bool compute_extra_info() const
get the protected member m_compute_extra_info
bool random_dilution_fraction() const
get the protected member m_random_dilution_fraction
std::shared_ptr< catalogue::Catalogue > data() const
get the protected member m_data
TwoPType m_twoPType
two-point correlation function type
static const std::string defaultString
default std::string value
Estimator
the two-point correlation estimator
@ _LandySzalay_
Landy&Szalay estimator.
@ _monopole_
the angle-averaged two-point correlation function, i.e. the monopole, ΞΎ(r)
ErrorType
the two-point correlation function error type
@ _Poisson_
Poissonian error.
The global namespace of the CosmoBolognaLib
CoordinateUnits
the coordinate units
@ _radians_
angle in radians