![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
#include "Headers/Triplet.h"
Public Member Functions | |
Member functions used to get private/protected parameters | |
Dim | tripletDim () const |
get the dimension of the triplet vectors More... | |
TripletType | tripletType () const |
get the triplet type More... | |
virtual double | scale (const int i) const |
get the protected member m_scale[i] More... | |
virtual std::vector< double > | scale () const |
get the protected member m_scale More... | |
virtual double | TT1D (const int i) const |
get the private member m_TT1D[i] More... | |
virtual std::vector< double > | TT1D () const |
get the private member m_TT1D More... | |
virtual double | scale_D1 (const int i) const |
get the protected member m_scale_D1[i] More... | |
virtual std::vector< double > | scale_D1 () const |
get the protected member m_scale_D1 More... | |
virtual double | scale_D2 (const int i) const |
get the protected member m_scale_D2[i] More... | |
virtual std::vector< double > | scale_D2 () const |
get the protected member m_scale_D2 More... | |
virtual double | TT2D (const int i, const int j) const |
get the protected member m_TT2D[i] More... | |
virtual std::vector< std::vector< double > > | TT2D () const |
get the protected member m_TT2D More... | |
virtual double | r12 () const |
get the private member m_r12 More... | |
virtual double | r12_binSize () const |
get the private member m_r12 More... | |
virtual double | r13 () const |
get the private member m_side_u More... | |
virtual double | r13_binSize () const |
get the private member m_side_u More... | |
virtual int | nbins () const |
get the private member m_nbins More... | |
virtual double | binSize () const |
get the private member m_binSize More... | |
virtual double | r12_D1 () const |
get the protected member Triplet1D::m_r12_D1 More... | |
virtual double | r12_binSize_D1 () const |
get the protected member Triplet1D::m_r12_binSize_D1 More... | |
virtual double | r13_D1 () const |
get the protected member Triplet1D::m_r13_D1 More... | |
virtual double | r13_binSize_D1 () const |
get the protected member Triplet1D::m_r13_binSize_D1 More... | |
virtual int | nbins_D1 () const |
get the protected member Triplet1D::m_nbins_D1 More... | |
virtual double | binSize_D1 () const |
get the protected member Triplet1D::m_binSize_D1 More... | |
virtual double | r12_D2 () const |
get the protected member Triplet1D::m_r12_D1 More... | |
virtual double | r12_binSize_D2 () const |
get the protected member Triplet1D::m_r12_binSize_D1 More... | |
virtual double | r13_D2 () const |
get the protected member Triplet1D::m_r13_D2 More... | |
virtual double | r13_binSize_D2 () const |
get the protected member Triplet1D::m_r13_binSize_D2 More... | |
virtual int | nbins_D2 () const |
get the protected member Triplet1D::m_nbins_D2 More... | |
virtual double | binSize_D2 () const |
get the protected member Triplet1D::m_binSize_D2 More... | |
Member functions used to set private/protected members | |
virtual void | set_TT1D (const int i, const double tt) |
set the member m_TT1D[i] More... | |
virtual void | add_TT1D (const int i, const double tt) |
set the protected member Triplet1D::m_TT1D[i] adding the number of triplets More... | |
Member functions used to handle object triplets (customized in all the derived classes) | |
virtual void | get_triplet (const double r12, const double r13, const double r23, int &klin)=0 |
estimate the distance between two objects and update the triplet vectors accordingly More... | |
virtual void | set_triplet (const int klin, const double ww=1.)=0 |
update the triplet More... | |
virtual void | put (const double r12, const double r13, const double r23, const double ww=1.)=0 |
estimate the distance between two objects and update the triplet vectors accordingly More... | |
virtual void | put (const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, const std::shared_ptr< catalogue::Object > obj3)=0 |
estimate the distance between three objects and update the triplet vectors accordingly More... | |
virtual void | Sum (const std::shared_ptr< Triplet > tt, const double ww=1.)=0 |
sum the number of triplets More... | |
Protected Attributes | |
Dim | m_tripletDim |
the dimension of the triplet vectors | |
TripletType | m_tripletType |
triplet type | |
Private Member Functions | |
Member functions used to set the binning parameters | |
(customized in all the derived classes) | |
virtual void | set_parameters ()=0 |
set the binning parameters | |
Constructors/destructors | |
virtual | ~Triplet () |
default destructor | |
static std::shared_ptr< Triplet > | Create (const TripletType type, const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins) |
static factory used to construct triplets of any type More... | |
The class Triplet.
This class is used to handle objects of type Triplet . It contains all virtual methods implemented in the derived classes Triplet2D and Triplet3D
|
inlinevirtual |
set the protected member Triplet1D::m_TT1D[i] adding the number of triplets
i | the bin index |
tt | the number of triplets in the bin |
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the private member m_binSize
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the protected member Triplet1D::m_binSize_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_binSize_D2
Reimplemented in cbl::triplets::Triplet2D.
|
static |
static factory used to construct triplets of any type
type | the triplet type; it can be: _comoving_theta, _comoving_side |
r12 | the size of r12 |
r12_binSize | the r12 bin size |
r13 | the ratio r13 |
r13_binSize | the r12 bin size |
nbins | the number of bins |
Definition at line 51 of file Triplet.cpp.
|
pure virtual |
estimate the distance between two objects and update the triplet vectors accordingly
r12 | distance between object1 and object2 |
r13 | distance between object1 and object3 |
r23 | distance between object2 and object3 |
klin | triplet bin |
Implemented in cbl::triplets::Triplet2D, cbl::triplets::Triplet1D_comoving_costheta, cbl::triplets::Triplet1D_comoving_side, cbl::triplets::Triplet1D_comoving_theta, and cbl::triplets::Triplet1D_multipoles_direct.
|
inlinevirtual |
get the private member m_nbins
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
estimate the distance between two objects and update the triplet vectors accordingly
r12 | distance between object1 and object2 |
r13 | distance between object1 and object3 |
r23 | distance between object2 and object3 |
ww | the weight |
Implemented in cbl::triplets::Triplet2D, cbl::triplets::Triplet1D_comoving_costheta, cbl::triplets::Triplet1D_comoving_side, cbl::triplets::Triplet1D_multipoles_direct, and cbl::triplets::Triplet1D_comoving_theta.
|
pure virtual |
estimate the distance between three objects and update the triplet vectors accordingly
obj1 | pointer to an object of class Object |
obj2 | pointer to an object of class Object |
obj3 | pointer to an object of class Object |
Implemented in cbl::triplets::Triplet2D, cbl::triplets::Triplet1D_comoving_costheta, cbl::triplets::Triplet1D_comoving_side, cbl::triplets::Triplet1D_multipoles_direct, and cbl::triplets::Triplet1D_comoving_theta.
|
inlinevirtual |
get the private member m_r12
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the private member m_r12
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the protected member Triplet1D::m_r12_binSize_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_r12_binSize_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_r12_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_r12_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the private member m_side_u
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the private member m_side_u
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the protected member Triplet1D::m_r13_binSize_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_r13_binSize_D2
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_r13_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member Triplet1D::m_r13_D2
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member m_scale
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the protected member m_scale[i]
i | the bin index |
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the protected member m_scale_D1
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member m_scale_D1[i]
i | the bin index in the first dimension |
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member m_scale_D2
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member m_scale_D2[i]
i | the bin index in the first dimension |
Reimplemented in cbl::triplets::Triplet2D.
|
pure virtual |
update the triplet
klin | triplet bin |
ww | the weight |
Implemented in cbl::triplets::Triplet2D, cbl::triplets::Triplet1D_comoving_costheta, cbl::triplets::Triplet1D_comoving_side, cbl::triplets::Triplet1D_comoving_theta, and cbl::triplets::Triplet1D_multipoles_direct.
|
inlinevirtual |
set the member m_TT1D[i]
i | the bin index |
tt | the number of triplets in the bin |
Reimplemented in cbl::triplets::Triplet1D.
|
pure virtual |
sum the number of triplets
tt | pointer to an object of class Triplet |
ww | the weight |
Implemented in cbl::triplets::Triplet2D, and cbl::triplets::Triplet1D.
|
inline |
|
inline |
|
inlinevirtual |
get the private member m_TT1D
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the private member m_TT1D[i]
i | the bin index |
Reimplemented in cbl::triplets::Triplet1D.
|
inlinevirtual |
get the protected member m_TT2D
Reimplemented in cbl::triplets::Triplet2D.
|
inlinevirtual |
get the protected member m_TT2D[i]
i | the bin index in the first dimension |
j | the bin index in the second dimension |
Reimplemented in cbl::triplets::Triplet2D.