summaryrefslogtreecommitdiff
path: root/hadamard_test.cpp
blob: e505d79da7c7daa87a83292f7a21f3e6f2ec6445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "hadamard_pt.hpp"

int main() {
  double β0 = 1.0;
  double β1 = 10.0;
  unsigned N = 4;
  unsigned n = 4;

  ParallelMeasurement m1;
  std::vector<Measurement> m2(N);
  std::vector<Measurement*> m3;
  for (Measurement& m : m2) {
    m3.push_back(&m);
  }

  PT a(β0, β1, N, n, m1, m3);

  a.tune(1000, 10, 0.1, 0.1);

  for (MCMC& M : a.Ms) {
    std::cout << M.β;
  }
}