CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
ModelFunction_Cosmology.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 
35 #ifndef __MODFUNCCOSM__
36 #define __MODFUNCCOSM__
37 
38 #include "Cosmology.h"
40 
41 
42 // ============================================================================
43 
44 
45 namespace cbl {
46 
47  namespace modelling {
48 
49  namespace cosmo {
50 
51  struct STR_data_model_cosmology{
52 
54  std::shared_ptr<cbl::cosmology::Cosmology> cosmology;
55 
57  std::vector<cbl::cosmology::CosmologicalParameter> Cpar;
58 
60  std::vector<std::string> data_type;
61 
62  std::shared_ptr<CMB_DistancePrior> distance_prior;
63 
64  };
65 
92  double cosmological_measurements(const double redshift, const std::string data_type, const cbl::cosmology::Cosmology cosmology);
93 
126  std::vector<double> cosmological_measurements_model(const std::vector<double> redshift, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
127 
160  std::vector<double> cosmological_measurements_model_CMB_DistancePrior (const std::vector<double> redshift, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
161  }
162  }
163 }
164 
165 #endif
The class Cosmology.
The class Modelling_Cosmology.
The class Cosmology.
Definition: Cosmology.h:277
std::vector< double > cosmological_measurements_model(const std::vector< double > redshift, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the generic cosmological measurements
std::vector< double > cosmological_measurements_model_CMB_DistancePrior(const std::vector< double > redshift, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
model for the generic cosmological measurements plus distance prior from CMB experiments
double cosmological_measurements(const double redshift, const std::string data_type, const cbl::cosmology::Cosmology cosmology)
generic cosmological measurements
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38