CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Modelling_TwoPointCorrelation.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2016 by Federico Marulli and Alfonso Veropalumbo *
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 
34 #ifndef __MODELLINGTWOPOINT__
35 #define __MODELLINGTWOPOINT__
36 
37 
38 #include "TwoPointCorrelation.h"
39 #include "Modelling.h"
41 
42 
43 // ===================================================================================================
44 
45 
46 namespace cbl {
47 
48  namespace modelling {
49 
57  namespace twopt {
58 
72 
73  protected:
74 
77 
79  std::shared_ptr<modelling::twopt::STR_data_model> m_data_model;
80 
81 
82  public:
83 
88 
93 
97  virtual ~Modelling_TwoPointCorrelation () = default;
98 
108  static std::shared_ptr<Modelling_TwoPointCorrelation> Create (const std::shared_ptr<measure::twopt::TwoPointCorrelation> twop);
109 
122  static std::shared_ptr<Modelling_TwoPointCorrelation> Create (const measure::twopt::TwoPType twoPType, const std::shared_ptr<data::Data> twop_dataset);
123 
125 
126 
131 
137 
143  std::shared_ptr<modelling::twopt::STR_data_model> data_model () { return m_data_model; }
144 
146 
147  };
148  }
149  }
150 }
151 
152 #endif
Global functions to model two-point correlation functions of any type.
The class Modelling.
The class TwoPointCorrelation.
The class Modelling.
Definition: Modelling.h:64
static std::shared_ptr< Modelling_TwoPointCorrelation > Create(const std::shared_ptr< measure::twopt::TwoPointCorrelation > twop)
static factory used to construct modelling of two-point correlation functions of any type
virtual ~Modelling_TwoPointCorrelation()=default
default destructor
measure::twopt::TwoPType m_twoPType
the two-point correlation function type
measure::twopt::TwoPType twoPType()
get the member m_twoPType
std::shared_ptr< modelling::twopt::STR_data_model > m_data_model
the container of parameters for two-point correlation function model computation
Modelling_TwoPointCorrelation()=default
default constuctor
std::shared_ptr< modelling::twopt::STR_data_model > data_model()
get the member m_data_model
TwoPType
the two-point correlation function type
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38