169 double PP1D (
const int i)
const override {
return m_PP1D[i]; }
175 std::vector<double>
PP1D ()
const override {
return m_PP1D; }
225 void reset ()
override;
257 void add_data1D (
const int i,
const std::vector<double> data)
override;
266 void add_data1D (
const int i,
const std::shared_ptr<pairs::Pair> pair,
const double ww=1.)
override;
281 virtual void Sum (
const std::shared_ptr<Pair> pair,
const double ww=1)
override;
479 :
Pair1D(1.,
nbins,
shift,
angularUnits,
angularWeight),
Pair1D_angular(thetaMin, thetaMax,
nbins,
shift,
angularUnits,
angularWeight)
501 :
Pair1D(binSize, 50,
shift,
angularUnits,
angularWeight),
Pair1D_angular(thetaMin, thetaMax, binSize,
shift,
angularUnits,
angularWeight)
532 void get (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
int &kk,
double &wkk)
override;
541 void set (
const int kk,
const double wkk,
const double weight=1)
override;
551 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2)
override;
622 :
Pair1D(1.,
nbins,
shift,
angularUnits,
angularWeight),
Pair1D_angular(thetaMin, thetaMax,
nbins,
shift,
angularUnits,
angularWeight)
644 :
Pair1D(binSize, 50,
shift,
angularUnits,
angularWeight),
Pair1D_angular(thetaMin, thetaMax, binSize,
shift,
angularUnits,
angularWeight)
675 void get (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
int &kk,
double &wkk)
override;
684 void set (
const int kk,
const double wkk,
const double weight=1)
override;
694 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2)
override;
882 :
Pair1D(1.,
nbins,
shift,
angularUnits,
angularWeight),
Pair1D_comoving(rMin, rMax,
nbins,
shift,
angularUnits,
angularWeight)
902 :
Pair1D(binSize, 50,
shift,
angularUnits,
angularWeight),
Pair1D_comoving(rMin, rMax, binSize,
shift,
angularUnits,
angularWeight)
933 void get (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
int &kk,
double &wkk)
override;
942 void set (
const int kk,
const double wkk,
const double weight=1)
override;
952 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2)
override;
1021 :
Pair1D(1.,
nbins,
shift,
angularUnits,
angularWeight),
Pair1D_comoving(rMin, rMax,
nbins,
shift,
angularUnits,
angularWeight)
1041 :
Pair1D(binSize, 50,
shift,
angularUnits,
angularWeight),
Pair1D_comoving(rMin, rMax, binSize,
shift,
angularUnits,
angularWeight)
1072 void get (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
int &kk,
double &wkk)
override;
1081 void set (
const int kk,
const double wkk,
const double weight=1)
override;
1091 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2)
override;
1285 :
Pair1D(1.,
nbins,
shift,
angularUnits,
angularWeight),
Pair1D_comoving_multipoles(rMin, rMax,
nbins,
shift,
angularUnits,
angularWeight)
1305 :
Pair1D(binSize, 50,
shift,
angularUnits,
angularWeight),
Pair1D_comoving_multipoles(rMin, rMax, binSize,
shift,
angularUnits,
angularWeight)
1337 void get (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
int &kk,
double &cosmu,
double &wkk)
override;
1347 void set (
const double cosmu,
const int kk,
const double wkk,
const double weight=1)
override;
1357 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2)
override;
1371 virtual void Sum (
const std::shared_ptr<Pair> pair,
const double ww=1)
override;
1440 :
Pair1D(1.,
nbins,
shift,
angularUnits,
angularWeight),
Pair1D_comoving_multipoles (rMin, rMax,
nbins,
shift,
angularUnits,
angularWeight)
1460 :
Pair1D(binSize, 50,
shift,
angularUnits,
angularWeight),
Pair1D_comoving_multipoles(rMin, rMax, binSize,
shift,
angularUnits,
angularWeight)
1493 void get (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
int &kk,
double &cosmu,
double &wkk)
override;
1503 void set (
const double cosmu,
const int kk,
const double wkk,
const double weight=1)
override;
1513 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2)
override;
1527 virtual void Sum (
const std::shared_ptr<Pair> pair,
const double ww=1)
override;
The class Pair1D_angular_lin.
void m_set_parameters_nbins() override
set the binning parameters given the number of bins
void put(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2) override
estimate the distance between two objects and update the pair vector accordingly
void set(const int kk, const double wkk, const double weight=1) override
set the pair vector
void m_set_parameters_binSize() override
set the binning parameters given the bin size
Pair1D_angular_lin()
default constructor
void get(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &wkk) override
get the pair index and weight
Pair1D_angular_lin(const double thetaMin, const double thetaMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
Pair1D_angular_lin(const double thetaMin, const double thetaMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
~Pair1D_angular_lin()=default
default destructor
The class Pair1D_angular_log.
void set(const int kk, const double wkk, const double weight=1) override
set the pair vector
void put(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2) override
estimate the distance between two objects and update the pair vector accordingly
void get(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &wkk) override
get the pair index and weight
~Pair1D_angular_log()=default
default destructor
void m_set_parameters_nbins() override
set the binning parameters given the number of bins
Pair1D_angular_log(const double thetaMin, const double thetaMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
void m_set_parameters_binSize() override
set the binning parameters given the bin size
Pair1D_angular_log()
default constructor
Pair1D_angular_log(const double thetaMin, const double thetaMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
The class Pair1D_angular.
double sMax() const override
get the protected member Pair1D_angular::m_thetaMax
double m_thetaMax
the maximum value of the angle θ used to count the number of pairs
virtual ~Pair1D_angular()=default
default destructor
double m_thetaMin
the minimum value of the angle θ used to count the number of pairs
Pair1D_angular(const double thetaMin, const double thetaMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
virtual void m_set_parameters_binSize()=0
set the binning parameters given the bin size
Pair1D_angular()
default constructor
virtual void m_set_parameters_nbins()=0
set the binning parameters given the number of bins
Pair1D_angular(const double thetaMin, const double thetaMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
double sMin() const override
get the protected member Pair1D_angular::m_thetaMin
The class Pair1D_comoving_lin.
Pair1D_comoving_lin(const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
void set(const int kk, const double wkk, const double weight=1) override
set the pair vector
Pair1D_comoving_lin(const double rMin, const double rMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
void get(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &wkk) override
get the pair index and weight
void m_set_parameters_nbins() override
set the binning parameters given the number of bins
void put(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2) override
estimate the distance between two objects and update the pair vector accordingly
void m_set_parameters_binSize() override
set the binning parameters given the bin size
Pair1D_comoving_lin()
default constructor
~Pair1D_comoving_lin()=default
default destructor
The class Pair1D_comoving_log.
Pair1D_comoving_log(const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
void get(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &wkk) override
get the pair index and weight
void m_set_parameters_nbins() override
set the binning parameters given the number of bins
Pair1D_comoving_log()
default constructor
Pair1D_comoving_log(const double rMin, const double rMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
~Pair1D_comoving_log()=default
default destructor
void set(const int kk, const double wkk, const double weight=1) override
set the pair vector
void m_set_parameters_binSize() override
set the binning parameters given the bin size
void put(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2) override
estimate the distance between two objects and update the pair vector accordingly
The class Pair1D_comoving_multipoles_lin.
void m_set_parameters_nbins() override
set the binning parameters given the number of bins
Pair1D_comoving_multipoles_lin()
default constructor
void set(const double cosmu, const int kk, const double wkk, const double weight=1) override
set the pair vector
void put(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2) override
estimate the distance between two objects and update the pair vector accordingly
Pair1D_comoving_multipoles_lin(const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
void get(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &cosmu, double &wkk) override
get the pair index and weight
virtual void Sum(const std::shared_ptr< Pair > pair, const double ww=1) override
sum the number of binned pairs
void m_set_parameters_binSize() override
set the binning parameters given the bin size
~Pair1D_comoving_multipoles_lin()=default
default destructor
Pair1D_comoving_multipoles_lin(const double rMin, const double rMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
The class Pair1D_comoving_multipoles_log.
void put(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2) override
estimate the distance between two objects and update the pair vector accordingly
void m_set_parameters_binSize() override
set the binning parameters given the bin size
virtual void Sum(const std::shared_ptr< Pair > pair, const double ww=1) override
sum the number of binned pairs
~Pair1D_comoving_multipoles_log()=default
default destructor
Pair1D_comoving_multipoles_log(const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
Pair1D_comoving_multipoles_log()
default constructor
void set(const double cosmu, const int kk, const double wkk, const double weight=1) override
set the pair vector
void get(const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &cosmu, double &wkk) override
get the pair index and weight
void m_set_parameters_nbins() override
set the binning parameters given the number of bins
Pair1D_comoving_multipoles_log(const double rMin, const double rMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
The class Pair1D_comoving_multipoles.
Pair1D_comoving_multipoles(const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
double sMin() const override
get the protected member Pair1D::m_rMin
double m_rMin
minimum separation used to count the pairs
Pair1D_comoving_multipoles(const double rMin, const double rMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
double m_rMax
maximum separation used to count the pairs
virtual void m_set_parameters_nbins()=0
set the binning parameters given the number of bins
double sMax() const override
get the protected member Pair1D::m_rMax
Pair1D_comoving_multipoles()
default constructor
virtual ~Pair1D_comoving_multipoles()=default
default destructor
virtual void m_set_parameters_binSize()=0
set the binning parameters given the bin size
The class Pair1D_comoving.
double sMax() const override
get the protected member Pair1D::m_rMax
Pair1D_comoving(const double rMin, const double rMax, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
double m_rMin
minimum separation used to count the pairs
Pair1D_comoving()
default constructor
Pair1D_comoving(const double rMin, const double rMax, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr)
constructor
double sMin() const override
get the protected member Pair1D::m_rMin
virtual void m_set_parameters_nbins()=0
set the binning parameters given the number of bins
virtual void m_set_parameters_binSize()=0
set the binning parameters given the bin size
double m_rMax
maximum separation used to count the pairs
virtual ~Pair1D_comoving()=default
default destructor
double m_shift
radial shift used to centre the output bins
double scale(const int i) const override
get the protected member Pair1D::m_scale[i]
Pair1D()
default constructor
std::vector< double > m_PP1D
the number of binned pairs
void set_scale(const int i, const double ss)
set the protected member Pair1D::m_scale[i]
int nbins() const override
get the protected member Pair1D::m_nbins
Pair1D(const double binSize, const int nbins, const double shift, const CoordinateUnits angularUnits, std::function< double(double)> angularWeight=nullptr)
constructor
int m_nbins
number of bins
double shift() const override
get the protected member Pair1D::m_shift
void set_PP1D(const int i, const double pp)
set the protected member Pair1D::m_PP1D[i]
virtual void m_set_parameters_nbins()=0
set the binning parameters given the number of bins
std::vector< double > PP1D_weighted() const override
get the protected member Pair1D::m_PP1D
double m_binSize_inv
the inverse of the bin size
virtual ~Pair1D()=default
default destructor
double PP1D(const int i) const override
get the protected member Pair1D::m_PP1D[i]
virtual void m_set_parameters_binSize()=0
set the binning parameters given the bin size
std::vector< double > m_scale
the binned scales
virtual void Sum(const std::shared_ptr< Pair > pair, const double ww=1) override
sum the number of binned pairs
std::vector< double > m_PP1D_weighted
the number of binned weighted pairs
void set_PP1D_weighted(const int i, const double pp)
set the protected member Pair1D::m_PP1D_weighted[i]
std::vector< double > PP1D() const override
get the protected member Pair1D::m_PP1D
double PP1D_weighted(const int i) const override
get the protected member Pair1D::m_PP1D_weighted[i]
std::vector< double > scale() const override
get the protected member Pair1D::m_scale
void add_data1D(const int i, const std::vector< double > data) override
set the protected member by adding new data
double binSize_inv() const override
get the protected member Pair1D::m_binSize_inv
void reset() override
reset the pair counts
FunctionDoubleDouble m_angularWeight
angular weight function
PairInfo m_pairInfo
pair info
FunctionDoubleDouble angularWeight()
get the m_angularWeight function
CoordinateUnits angularUnits()
get the angular units
PairType m_pairType
pair type
CoordinateUnits m_angularUnits
angular units
Dim m_pairDim
pair dimension
@ _angular_lin_
1D pair in angular coordinates in linear bins
@ _angular_log_
1D pair in angular coordinates in logarithmic bins
@ _comoving_multipoles_log_
1D pair in comoving coordinates in logarithmic bins, multipoles
@ _comoving_multipoles_lin_
1D pair in comoving coordinates in linear bins, multipoles
@ _comoving_log_
1D pair in comoving coordinates in logarithmic bins
@ _comoving_lin_
1D pair in comoving coordinates in linear bins
@ _standard_
standard: the object contains only the number of pairs
The global namespace of the CosmoBolognaLib
void checkDim(const std::vector< T > vect, const int val, const std::string vector, bool equal=true)
check if the dimension of a std::vector is equal/lower than an input value
CoordinateUnits
the coordinate units
@ _radians_
angle in radians
@ _1D_
1D, used e.g. for 1D pairs, in angular or comoving separations