31 hyp.
init(
"lha/si_input.flha", config);
33 std::map<ObservableId, QCDOrder> obs_ids = {
40 std::shared_ptr<ObservableInterface> oi = std::make_shared<ObservableInterface>();
42 oi->add_observables(obs_ids,
true);
45 std::cout <<
id << std::endl;
49 Vec Oexp{3.52e-9, 3.52e-9, 1.3e-10};
51 { (1.2e-10)*(1.2e-10), -0.2*(1.2e-10)*(1.2e-10), -0.2*(1.2e-10)*(0.2e-10) },
52 { -0.2*(1.2e-10)*(1.2e-10), (1.2e-10)*(1.2e-10), 0.0 },
53 { -0.2*(1.2e-10)*(0.2e-10), 0.0, (0.2e-10)*(0.2e-10) }
58 Vec eta_mean{0.194, 0.234, 0.0635, 0.04111, 0.00858};
60 {0.010*0.010, 0,0,0,0},
61 {0, 0.010*0.010, 0,0,0},
62 {0,0, 0.014*0.014, 0,0},
63 {0,0,0, 0.00077*0.00077, 0},
64 {0,0,0,0, 0.00019*0.00019}
67 std::vector<ParamId> p_specs = {
71 std::vector<ParamId> eta_specs = {
80 std::vector<ParamId> eta_specs_real;
82 for (
auto elem : obs_ids) {
83 for (
auto _ : oi->get_all_ops_deps(elem.first))
84 if (!(std::find(eta_specs_real.begin(), eta_specs_real.end(), _) != eta_specs_real.end())) {
85 eta_specs_real.push_back(_);
89 std::unordered_set<ParamId> good;
91 for (
auto elem : eta_specs_real) {
92 std::cout <<
"FIIIRST : " << elem << std::endl;
97 std::vector<ParamId> good_all;
99 for (
auto elem : truc) {
100 good_all.push_back(elem);
103 std::cout <<
"WHAAATS : " << elem << std::endl;
105 std::shared_ptr<IStatCorrelationProxy> pscp = std::make_shared<StatCorrelationProxy>();
106 std::shared_ptr<IStatParameterProxy> pspp = std::make_shared<StatParameterProxy>();
109 std::vector<ParamId> eta_specs_real_with_corr = ct.
check_if_corr(eta_specs_real);
111 for (
auto elem : eta_specs_real_with_corr) {
118 for (
int i = 0; i < eta_specs_real_with_corr.size(); i++) {
119 for (
int j = 0; j < eta_specs_real_with_corr.size(); j++) {
120 std::cout <<
"[" << eta_specs_real_with_corr[i] <<
", " << eta_specs_real_with_corr[j] <<
"] = " << SigmaEtaReal[i][j] <<
" | ";
123 std::cout << std::endl;
126 std::shared_ptr<ObservableInterfaceProxy> model = std::make_shared<ObservableInterfaceProxy> (oi, p_specs, eta_specs_real_with_corr);
129 std::cout <<
"creating RandomVectorGenerator" << std::endl;
131 unsigned int seed = std::random_device{}();
136 std::vector<std::unique_ptr<IMarginalDistribution>> truc2{};
138 truc2.emplace_back(std::move(dist));
140 std::unique_ptr<JointDistribution> rvg = std::make_unique<JointDistribution>(std::move(truc2), std::move(copul));
142 std::cout <<
"RandomVectorGenerator created" << std::endl;
146 std::cout <<
"Creating MonteCarloPredictor" << std::endl;
150 std::mt19937 rng(1234);
152 std::cout <<
"MonteCarloPredictor created" << std::endl;
155 auto sums = mc.summarize(p_test);
157 std::cout <<
"summarize ented" << std::endl;
159 std::cout <<
"Skewness[0]=" << sums.summary[0].skew <<
" ok=" << sums.summary[0].symmetric << std::endl;
161 for (
auto sum : sums.summary) {
162 std::cout <<
"value = " << sum.mu <<
" +- " << sum.sigma << std::endl;
165 std::cout <<
"Now doing likelihood : " << std::endl;