![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
The class Pair1D_extra. More...
#include "Headers/Pair1D_extra.h"


Public Member Functions | |
Constructors/destructors | |
| Pair1D_extra ()=default | |
| default constructor | |
| Pair1D_extra (const double binSize, const int nbins, const double shift, const CoordinateUnits angularUnits, std::function< double(double)> angularWeight=nullptr) | |
| constructor More... | |
| virtual | ~Pair1D_extra ()=default |
| default destructor | |
Member functions used to get the protected members | |
| double | scale_mean (const int i) const override |
| get the protected member Pair1D_extra::m_scale_mean[i] More... | |
| std::vector< double > | scale_mean () const override |
| get the protected member Pair1D_extra::m_scale_mean More... | |
| double | scale_S (const int i) const override |
| get the protected member Pair1D_extra::m_scale_S[i] More... | |
| std::vector< double > | scale_S () const override |
| get the protected member Pair1D_extra::m_scale_S More... | |
| double | scale_sigma (const int i) const override |
| get the protected member Pair1D_extra::m_scale_sigma[i] More... | |
| std::vector< double > | scale_sigma () const override |
| get the protected member Pair1D_extra::m_scale_sigma More... | |
| double | z_mean (const int i) const override |
| get the protected member Pair1D_extra::m_z_mean[i] More... | |
| std::vector< double > | z_mean () const override |
| get the protected member Pair1D_extra::m_z_mean More... | |
| double | z_S (const int i) const override |
| get the protected member Pair1D_extra::m_z_S[i] More... | |
| std::vector< double > | z_S () const override |
| get the protected member Pair1D_extra::m_z_S More... | |
| double | z_sigma (const int i) const override |
| get the protected member Pair1D_extra::m_z_sigma[i] More... | |
| std::vector< double > | z_sigma () const override |
| get the protected member Pair1D_extra::m_z_mean More... | |
Member functions used to set the protected members | |
| void | set_scale_mean (const int i, const double ss) |
| set the protected member Pair1D_extra::m_scale_mean[i] More... | |
| void | set_scale_sigma (const int i, const double ss) |
| set the protected member Pair1D_extra::m_scale_sigma[i] More... | |
| void | set_z_mean (const int i, const double ss) |
| set the protected member Pair1D_extra::m_z_mean[i] More... | |
| void | set_z_sigma (const int i, const double ss) |
| set the protected member Pair1D_extra::m_z_sigma[i] More... | |
| void | add_data1D (const int i, const std::vector< double > data) override |
| set the protected members by adding new data More... | |
| void | add_data1D (const int i, const std::shared_ptr< pairs::Pair > pair, const double ww=1.) override |
| set the protected members by adding new data More... | |
Member functions used to handle object pairs | |
| virtual void | Sum (const std::shared_ptr< Pair > pair, const double ww=1) override |
| sum the number of binned pairs More... | |
Public Member Functions inherited from cbl::pairs::Pair1D | |
| Pair1D () | |
| default constructor | |
| Pair1D (const double binSize, const int nbins, const double shift, const CoordinateUnits angularUnits, std::function< double(double)> angularWeight=nullptr) | |
| constructor More... | |
| virtual | ~Pair1D ()=default |
| default destructor | |
| double | scale (const int i) const override |
| get the protected member Pair1D::m_scale[i] More... | |
| std::vector< double > | scale () const override |
| get the protected member Pair1D::m_scale More... | |
| double | PP1D (const int i) const override |
| get the protected member Pair1D::m_PP1D[i] More... | |
| std::vector< double > | PP1D () const override |
| get the protected member Pair1D::m_PP1D More... | |
| double | PP1D_weighted (const int i) const override |
| get the protected member Pair1D::m_PP1D_weighted[i] More... | |
| std::vector< double > | PP1D_weighted () const override |
| get the protected member Pair1D::m_PP1D More... | |
| double | binSize_inv () const override |
| get the protected member Pair1D::m_binSize_inv More... | |
| int | nbins () const override |
| get the protected member Pair1D::m_nbins More... | |
| double | shift () const override |
| get the protected member Pair1D::m_shift More... | |
| void | reset () override |
| reset the pair counts More... | |
| void | set_scale (const int i, const double ss) |
| set the protected member Pair1D::m_scale[i] More... | |
| void | set_PP1D (const int i, const double pp) |
| set the protected member Pair1D::m_PP1D[i] More... | |
| void | set_PP1D_weighted (const int i, const double pp) |
| set the protected member Pair1D::m_PP1D_weighted[i] More... | |
Public Member Functions inherited from cbl::pairs::Pair | |
| Dim | pairDim () const |
| get the dimension of the pair vectors More... | |
| PairType | pairType () const |
| get the pair type More... | |
| PairInfo | pairInfo () const |
| get the pair information type More... | |
| CoordinateUnits | angularUnits () |
| get the angular units More... | |
| FunctionDoubleDouble | angularWeight () |
| get the m_angularWeight function More... | |
| virtual double | scale_D1 (const int i) const |
| get the member m_scale_D1[i] More... | |
| virtual std::vector< double > | scale_D1 () const |
| get the member std::vector<double> m_scale_D1 More... | |
| virtual double | scale_D2 (const int i) const |
| get the member m_scale_D2[i] More... | |
| virtual std::vector< double > | scale_D2 () const |
| get the member std::vector<double> m_scale_D2 More... | |
| virtual double | scale_D1_mean (const int i, const int j) const |
| get the protected member m_scale_D1[i][j] More... | |
| virtual std::vector< std::vector< double > > | scale_D1_mean () const |
| get the protected member m_scale_D1 More... | |
| virtual double | scale_D2_mean (const int i, const int j) const |
| get the protected member m_scale_D2[i][j] More... | |
| virtual std::vector< std::vector< double > > | scale_D2_mean () const |
| get the protected member m_scale_D2 More... | |
| virtual double | scale_D1_S (const int i, const int j) const |
| get the member m_scale_D1_S[i][j] More... | |
| virtual std::vector< std::vector< double > > | scale_D1_S () const |
| get the member std::vector<double> m_scale_D1 More... | |
| virtual double | scale_D2_S (const int i, const int j) const |
| get the member m_scale_D2[i][j] More... | |
| virtual std::vector< std::vector< double > > | scale_D2_S () const |
| get the member std::vector<double> m_scale_D2 More... | |
| virtual double | scale_D1_sigma (const int i, const int j) const |
| get the member m_scale_D1_sigma[i][j] More... | |
| virtual std::vector< std::vector< double > > | scale_D1_sigma () const |
| get the member std::vector<double> m_scale_D1 More... | |
| virtual double | scale_D2_sigma (const int i, const int j) const |
| get the member m_scale_D2[i][j] More... | |
| virtual std::vector< std::vector< double > > | scale_D2_sigma () const |
| get the member std::vector<double> m_scale_D2 More... | |
| virtual double | z_mean (const int i, const int j) const |
| get the protected member m_z_mean[i][j] More... | |
| virtual std::vector< std::vector< double > > | z_mean2D () const |
| get the protected member m_z_mean More... | |
| virtual double | z_S (const int i, const int j) const |
| get the member m_z_sigma[i][j] More... | |
| virtual double | z_sigma (const int i, const int j) const |
| get the member m_z_sigma[i][j] More... | |
| virtual std::vector< std::vector< double > > | z_sigma2D () const |
| get the member std::vector<double> m_z_sigma More... | |
| virtual double | PP2D (const int i, const int j) const |
| get the member m_PP2D[i][j] More... | |
| virtual std::vector< std::vector< double > > | PP2D () const |
| get the member std::vector<std::vector<double>> m_PP2D More... | |
| virtual double | PP2D_weighted (const int i, const int j) const |
| get the member m_PP2D_weighted[i][j] More... | |
| virtual std::vector< std::vector< double > > | PP2D_weighted () const |
| get the member std::vector<std::vector<double>> m_PP2D_weighted More... | |
| virtual double | binSize_inv_D1 () const |
| get the member m_binSize_inv_D1 More... | |
| virtual int | nbins_D1 () const |
| get the member m_nbins_D1 More... | |
| virtual double | shift_D1 () const |
| get the member m_shift_D1 More... | |
| virtual double | binSize_inv_D2 () const |
| get the member m_binSize_inv_D2 More... | |
| virtual int | nbins_D2 () const |
| get the member m_nbins_D2 More... | |
| virtual double | shift_D2 () const |
| get the member m_shift_D2 More... | |
| virtual double | sMin () const |
| get the minimum separation More... | |
| virtual double | sMax () const |
| get the the minimum separation More... | |
| virtual double | sMin_D1 () const |
| get the minimum separation in the first dimension More... | |
| virtual double | sMax_D1 () const |
| get the the minimum separation in the first dimension More... | |
| virtual double | sMin_D2 () const |
| get the minimum separation in the second dimension More... | |
| virtual double | sMax_D2 () const |
| get the the minimum separation in the second dimension More... | |
| virtual void | set_PP2D (const int i, const int j, const double pp) |
| set the member m_PP2D[i][j] More... | |
| virtual void | set_PP2D_weighted (const int i, const int j, const double pp) |
| set the member m_PP2D_weighted[i][j] More... | |
| virtual void | add_data2D (const int i, const int j, const std::vector< double > data) |
| set the protected members by adding new 2D data More... | |
| virtual void | add_data2D (const int i, const int j, const std::shared_ptr< pairs::Pair > pair, const double ww=1.) |
| set the protected members by adding new 2D data More... | |
| virtual void | get (const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &wkk) |
| get the pair index and weight More... | |
| virtual void | get (const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &kk, double &cosmu, double &wkk) |
| get the pair index and weight More... | |
| virtual void | get (const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2, int &ir, int &jr, double &ww) |
| get the pair index and weight More... | |
| virtual void | set (const int kk, const double wkk, const double weight=1) |
| set the pair vector More... | |
| virtual void | set (const double cosmu, const int kk, const double wkk, const double weight=1) |
| set the pair vector More... | |
| virtual void | set (const int ir, const int jr, const double ww, const double weight=1) |
| set the pair vector More... | |
| virtual void | put (const std::shared_ptr< catalogue::Object > obj1, const std::shared_ptr< catalogue::Object > obj2)=0 |
| estimate the distance between two objects and update the pair vector accordingly More... | |
| Pair ()=default | |
| default constuctor | |
| virtual | ~Pair ()=default |
| default destructor | |
Protected Attributes | |
| std::vector< double > | m_scale_mean |
| the mean scales in each bin | |
| std::vector< double > | m_scale_S |
| the square of the standard deviations of the scale distributions in each bin, multiplied by the total weight | |
| std::vector< double > | m_scale_sigma |
| the standard deviations of the scale distributions in each bin | |
| std::vector< double > | m_z_mean |
| the mean redshift in each bin | |
| std::vector< double > | m_z_S |
| the square of the standard deviations of the redshift distributions in each bin, multiplied by the total weight | |
| std::vector< double > | m_z_sigma |
| the standard deviations of the redshift distributions in each bin | |
parameters used for internal computations | |
| std::vector< double > | m_fact_scale |
| factor used to combine two standard deviations of the scale distribution | |
| std::vector< double > | m_fact_z |
| factor used to combine two standard deviations of the redshift distribution | |
Protected Attributes inherited from cbl::pairs::Pair1D | |
| std::vector< double > | m_scale |
| the binned scales | |
| std::vector< double > | m_PP1D |
| the number of binned pairs | |
| std::vector< double > | m_PP1D_weighted |
| the number of binned weighted pairs | |
| double | m_binSize_inv |
| the inverse of the bin size | |
| int | m_nbins |
| number of bins | |
| double | m_shift |
| radial shift used to centre the output bins | |
Protected Attributes inherited from cbl::pairs::Pair | |
| Dim | m_pairDim |
| pair dimension | |
| PairType | m_pairType |
| pair type | |
| PairInfo | m_pairInfo |
| pair info | |
| CoordinateUnits | m_angularUnits |
| angular units | |
| FunctionDoubleDouble | m_angularWeight |
| angular weight function | |
Additional Inherited Members | |
Static Public Member Functions inherited from cbl::pairs::Pair | |
| static std::shared_ptr< Pair > | Create (const PairType type, const PairInfo info, const double Min, const double Max, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, FunctionDoubleDouble angularWeight=nullptr) |
| static factory used to construct pairs of any type More... | |
| static std::shared_ptr< Pair > | Create (const PairType type, const PairInfo info, const double Min, const double Max, const double binSize, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, FunctionDoubleDouble angularWeight=nullptr) |
| static factory used to construct pairs of any type More... | |
| static std::shared_ptr< Pair > | Create (const PairType type, const PairInfo info, const double Min_D1, const double Max_D1, const int nbins_D1, const double shift_D1, const double Min_D2, const double Max_D2, const int nbins_D2, const double shift_D2, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, FunctionDoubleDouble angularWeight=nullptr) |
| static factory used to construct pairs of any type More... | |
| static std::shared_ptr< Pair > | Create (const PairType type, const PairInfo info, const double Min_D1, const double Max_D1, const double binSize_D1, const double shift_D1, const double Min_D2, const double Max_D2, const double binSize_D2, const double shift_D2, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, FunctionDoubleDouble angularWeight=nullptr) |
| static factory used to construct pairs of any type More... | |
Protected Member Functions inherited from cbl::pairs::Pair1D | |
| 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 | |
The class Pair1D_extra.
This class is used to handle objects of type Pair1D_extra .
Definition at line 57 of file Pair1D_extra.h.
|
inline |
constructor
| binSize | bin size |
| nbins | number of bins |
| shift | radial shift used to centre the output bins |
| angularUnits | angular units |
| angularWeight | angular weight function |
Definition at line 114 of file Pair1D_extra.h.
|
overridevirtual |
set the protected members by adding new data
| i | the bin index |
| pair | pair pointer to an object of class Pair |
| ww | a multiplicative factor used for bootstrap |
Reimplemented from cbl::pairs::Pair1D.
Definition at line 335 of file Pair1D_extra.cpp.
|
overridevirtual |
set the protected members by adding new data
| i | the bin index |
| data | vector containing the new data to be added |
Reimplemented from cbl::pairs::Pair1D.
Definition at line 286 of file Pair1D_extra.cpp.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_scale_mean
Reimplemented from cbl::pairs::Pair.
Definition at line 142 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_scale_mean[i]
| i | the bin index |
Reimplemented from cbl::pairs::Pair.
Definition at line 136 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_scale_S
Reimplemented from cbl::pairs::Pair.
Definition at line 158 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_scale_S[i]
| i | the bin index |
Reimplemented from cbl::pairs::Pair.
Definition at line 151 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_scale_sigma
Reimplemented from cbl::pairs::Pair.
Definition at line 173 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_scale_sigma[i]
| i | the bin index |
Reimplemented from cbl::pairs::Pair.
Definition at line 166 of file Pair1D_extra.h.
|
inline |
set the protected member Pair1D_extra::m_scale_mean[i]
| i | the bin index |
| ss | the mean scale |
Definition at line 233 of file Pair1D_extra.h.
|
inline |
set the protected member Pair1D_extra::m_scale_sigma[i]
| i | the bin index |
| ss | the standard deviation of the scale distribution |
Definition at line 241 of file Pair1D_extra.h.
|
inline |
set the protected member Pair1D_extra::m_z_mean[i]
| i | the bin index |
| ss | the mean redshift |
Definition at line 249 of file Pair1D_extra.h.
|
inline |
set the protected member Pair1D_extra::m_z_sigma[i]
| i | the bin index |
| ss | the standard deviation of the redshift distribution |
Definition at line 257 of file Pair1D_extra.h.
|
overridevirtual |
sum the number of binned pairs
| pair | an object of class Pair |
| ww | the weight |
Reimplemented from cbl::pairs::Pair1D.
Reimplemented in cbl::pairs::Pair1D_comoving_multipoles_log_extra, and cbl::pairs::Pair1D_comoving_multipoles_lin_extra.
Definition at line 344 of file Pair1D_extra.cpp.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_z_mean
Reimplemented from cbl::pairs::Pair.
Definition at line 186 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_z_mean[i]
| i | the bin index |
Reimplemented from cbl::pairs::Pair.
Definition at line 180 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_z_S
Reimplemented from cbl::pairs::Pair.
Definition at line 202 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_z_S[i]
| i | the bin index |
Reimplemented from cbl::pairs::Pair.
Definition at line 195 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_z_mean
Reimplemented from cbl::pairs::Pair.
Definition at line 217 of file Pair1D_extra.h.
|
inlineoverridevirtual |
get the protected member Pair1D_extra::m_z_sigma[i]
| i | the bin index |
Reimplemented from cbl::pairs::Pair.
Definition at line 210 of file Pair1D_extra.h.