![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
The class Triplet1D_comoving_costheta. More...
#include <Triplet1D.h>
Public Member Functions | |
Constructors/destructors | |
Triplet1D_comoving_costheta () | |
default constructor | |
Triplet1D_comoving_costheta (const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins) | |
constructor More... | |
Member functions used to handle triplets | |
void | get_triplet (const double r12, const double r13, const double r23, int &klin) override |
estimate the distance between two objects and update the triplet vectors accordingly More... | |
void | set_triplet (const int klin, const double ww=1.) override |
update the triplet More... | |
void | put (const double r12, const double r13, const double r23, const double ww=1.) override |
estimate the distance between three objects and update the triplet vectors accordingly More... | |
void | put (const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, const std::shared_ptr< catalogue::Object > obj3) override |
estimate the distance between three objects and update the triplet vectors accordingly More... | |
![]() | |
Triplet1D_comoving ()=default | |
default constructor | |
Triplet1D_comoving (const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins) | |
constructor More... | |
virtual | ~Triplet1D_comoving ()=default |
default destructor | |
![]() | |
Triplet1D () | |
default constructor | |
Triplet1D (const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins) | |
constructor More... | |
~Triplet1D ()=default | |
default destructor | |
double | scale (const int i) const override |
get the protected member m_scale[i] More... | |
std::vector< double > | scale () const override |
get the protected member m_scale More... | |
double | TT1D (const int i) const override |
get the private member m_TT1D[i] More... | |
std::vector< double > | TT1D () const override |
get the private member m_TT1D More... | |
double | r12 () const override |
get the private member m_r12 More... | |
double | r12_binSize () const override |
get the private member m_r12_binSize More... | |
double | r13 () const override |
get the private member m_r13 More... | |
double | r13_binSize () const override |
get the private member m_r13_binSize More... | |
int | nbins () const override |
get the protected member m_nbins More... | |
double | binSize () const override |
get the protected member m_binSize More... | |
void | set_TT1D (const int i, const double tt) |
set the member m_TT1D[i] More... | |
void | add_TT1D (const int i, const double tt) |
set the protected member m_TT1D[i] adding the number of triplets More... | |
void | Sum (const std::shared_ptr< Triplet > tt, const double ww=1) override |
sum the number of triplets More... | |
![]() | |
Dim | tripletDim () const |
get the dimension of the triplet vectors More... | |
TripletType | tripletType () const |
get the triplet type 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_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... | |
virtual | ~Triplet () |
default destructor | |
Private Member Functions | |
Member functions used to set the binning parameters | |
void | set_parameters () override |
set the binning parameters More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
std::vector< double > | m_scale |
the binned scales | |
std::vector< double > | m_TT1D |
the number of binned triplets | |
double | m_r12 |
the size of r12 | |
double | m_r12_binSize |
the size of r12 bin | |
double | m_r13 |
the size of r13 | |
double | m_r13_binSize |
the size of r13 bin | |
int | m_nbins |
the number of bins | |
double | m_binSize |
the bin size | |
![]() | |
Dim | m_tripletDim |
the dimension of the triplet vectors | |
TripletType | m_tripletType |
triplet type | |
The class Triplet1D_comoving_costheta.
"Headers/Triplet1D.h"
This class is used to handle objects of type Triplet1D_comoving_costheta , used to handle 1D triplets of objects in comoving coordinates, in bins of the cosine of the angle
Definition at line 679 of file Triplet1D.h.
|
inline |
constructor
r12 | the size of r12 |
r12_binSize | the size of r12 bin |
r13 | the size of r13 |
r13_binSize | the size of r13 bin |
nbins | the number of bins |
Definition at line 720 of file Triplet1D.h.
|
overridevirtual |
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 |
Implements cbl::triplets::Triplet.
Definition at line 233 of file Triplet.cpp.
|
overridevirtual |
estimate the distance between three 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 | total weight |
Implements cbl::triplets::Triplet.
Definition at line 255 of file Triplet.cpp.
|
overridevirtual |
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 |
Implements cbl::triplets::Triplet.
Definition at line 269 of file Triplet.cpp.
|
overrideprivatevirtual |
set the binning parameters
Implements cbl::triplets::Triplet1D_comoving.
Definition at line 220 of file Triplet.cpp.
|
overridevirtual |
update the triplet
klin | triplet bin |
ww | the weight |
Implements cbl::triplets::Triplet.
Definition at line 246 of file Triplet.cpp.