34 #ifndef __COMBMODELLING__
35 #define __COMBMODELLING__
115 CombinedModelling (std::vector<std::shared_ptr<modelling::Modelling>> modelling, std::vector<std::string> repeated_par={},
const std::vector<std::vector<std::vector<int>>> common_repeated_par={});
173 CombinedModelling (std::vector<std::vector<std::shared_ptr<modelling::Modelling>>> modelling,
const std::vector<std::shared_ptr<data::CovarianceMatrix>> covariance,
const std::vector<cbl::statistics::LikelihoodType> likelihood_types,
const std::vector<std::string> repeated_par={},
const std::vector<std::vector<std::vector<int>>> common_repeated_par={},
const std::vector<std::shared_ptr<cosmology::SuperSampleCovariance>> SSC={});
219 void maximize_combined_posterior (
const std::vector<double> start,
const unsigned int max_iter=10000,
const double tol=1.e-6,
const double epsilon=1.e-3);
271 void sample_combined_posterior (
const int chain_size,
const int nwalkers,
const double radius,
const std::vector<double> start,
const unsigned int max_iter=10000,
const double tol=1.e-6,
const double epsilon=1.e-3,
const double aa=2,
const bool parallel=
true);
292 void sample_combined_posterior (
const int chain_size,
const int nwalkers,
const std::string input_dir,
const std::string input_file,
const int seed,
const double aa=2,
const bool parallel=
true);
358 void write_combined_results (
const std::string output_dir,
const std::string root_file,
const int start=0,
const int thin=1,
const int nbins=50,
const bool fits=
false,
const bool compute_mode=
false,
const int ns=-1);
380 void write_model_from_combined_chain (
const std::string output_dir,
const std::string output_file,
const int start,
const int thin,
const std::vector<double> xx={},
const std::vector<double> yy={});
The class CombinedPosterior.
The class CombinedModelling.
virtual ~CombinedModelling()=default
default destructor
void sample_combined_posterior(const int chain_size, const int nwalkers, const double aa=2, const bool parallel=true)
sample the posterior, initializing the chains by drawing from the prior distributions
std::shared_ptr< statistics::CombinedPosterior > m_combined_posterior
combined posterior
CombinedModelling()=default
default constuctor
void write_combined_results(const std::string output_dir, const std::string root_file, const int start=0, const int thin=1, const int nbins=50, const bool fits=false, const bool compute_mode=false, const int ns=-1)
write the results of the MCMC sampling to file
void write_model_from_combined_chain(const std::string output_dir, const std::string output_file, const int start, const int thin, const std::vector< double > xx={}, const std::vector< double > yy={})
write the model computing 16th, 50th and 84th percentiles from the MCMC
void maximize_combined_posterior(const std::vector< double > start, const unsigned int max_iter=10000, const double tol=1.e-6, const double epsilon=1.e-3)
function that maximizes the combined posterior, finds the best-fit parameters and stores them in the ...
The global namespace of the CosmoBolognaLib