CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
TwoPointCorrelationCross1D.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2010 by Federico Marulli and Carlo Giocoli *
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 __TWOPOINTCROSS1D__
36 #define __TWOPOINTCROSS1D__
37 
38 
40 #include "TwoPointCorrelation1D.h"
41 
42 
43 // ===================================================================================================
44 
45 
46 namespace cbl {
47 
48  namespace measure {
49 
50  namespace twopt {
51 
63 
64  protected :
65 
70 
105  std::shared_ptr<data::Data> correlation_SzapudiSzalayEstimator (const std::shared_ptr<pairs::Pair> d1d2, const std::shared_ptr<pairs::Pair> rr, const std::shared_ptr<pairs::Pair> d1r, const std::shared_ptr<pairs::Pair> d2r, const int nData1=0, const double nData1_weighted=0., const int nData2=0, const double nData2_weighted=0., const int nRandom=0, const double nRandom_weighted=0.) override;
106 
108 
109 
110  public:
111 
116 
122 
145 
151 
153 
158 
204  virtual 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_d1d2=true, const bool count_rr=true, const bool count_d1r=true, const bool count_d2r=true, const bool tcount=true, const Estimator estimator=Estimator::_SzapudiSzalay_, const double fact=0.1) = 0;
205 
207 
208  };
209  }
210  }
211 }
212 
213 #endif
The class TwoPointCorrelation1D.
The class TwoPointCorrelationCross.
The class Catalogue.
Definition: Catalogue.h:654
static std::shared_ptr< Data > Create(const DataType dataType)
static factory used to construct objects of class Data1D
Definition: Data.cpp:50
std::shared_ptr< data::Data > m_dataset
the dataset of the measure
Definition: Measure.h:147
std::shared_ptr< data::Data > correlation_SzapudiSzalayEstimator(const std::shared_ptr< pairs::Pair > d1d2, const std::shared_ptr< pairs::Pair > rr, const std::shared_ptr< pairs::Pair > d1r, const std::shared_ptr< pairs::Pair > d2r, const int nData1=0, const double nData1_weighted=0., const int nData2=0, const double nData2_weighted=0., const int nRandom=0, const double nRandom_weighted=0.) override
get a dataset containing the two-point cross correlation function measured with the Szapudi-Szalay es...
TwoPointCorrelationCross1D(const catalogue::Catalogue data1, const catalogue::Catalogue data2, const catalogue::Catalogue random, const bool compute_extra_info=false, const double random_dilution_fraction=1.)
constructor
~TwoPointCorrelationCross1D()=default
default destructor
virtual 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_d1d2=true, const bool count_rr=true, const bool count_d1r=true, const bool count_d2r=true, const bool tcount=true, const Estimator estimator=Estimator::_SzapudiSzalay_, const double fact=0.1)=0
measure the cross two-point correlation function
std::shared_ptr< pairs::Pair > d1r() const
get the protected member m_d1r
std::shared_ptr< pairs::Pair > d1d2() const
get the protected member m_d1d2
std::shared_ptr< pairs::Pair > d2r() const
get the protected member m_d2r
std::shared_ptr< catalogue::Catalogue > data2() const
get the protected member m_data2
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< pairs::Pair > rr() const
get the protected member m_rr
static const std::string defaultString
default std::string value
Definition: Constants.h:336
@ _1D_extra_
1D dataset with extra information
Estimator
the two-point correlation estimator
@ _SzapudiSzalay_
Szapudi&Szalay estimator.
ErrorType
the two-point correlation function error type
Definition: Measure.h:59
@ _Poisson_
Poissonian error.
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38