Skip to content

Commit 34c28da

Browse files
committed
Run Option1 with restricted params
1 parent afaa07d commit 34c28da

File tree

4 files changed

+32
-29
lines changed

4 files changed

+32
-29
lines changed

Python/Bayesian 2param.ipynb

Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.

Python/JS_acc.png

48.9 KB
Loading

build/generate

4.05 KB
Binary file not shown.

src/Generate.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ const std::vector<double> shakingfunctions {3.92699082, 3.92699082, 3.40339204,
1313
const std::vector<double> shakingfunctions2p2e {3.40339204, 3.92699082, 1.83259571, 1.57079633, 2.0943951, 1.57079633, 2.61799388, 0., 3.92699082, 3.92699082,
1414
2.0943951, 2.35619449, 2.35619449, 2.35619449, 2.35619449, 3.92699082, 3.92699082, 3.92699082, 2.61799388,
1515
3.40339204, 3.92699082, 3.66519143, 3.66519143, 3.66519143, 3.66519143, 3.66519143, 3.66519143, 0.78539816,
16-
0.78539816, 0.78539816, 0.78539816, 0.78539816}; // acceleration as 2 parameter
16+
0.78539816, 0.78539816, 0.78539816, 0.78539816}; // acceleration as 2 parameter, Option 1
1717

1818

1919
const std::vector<double> shakingfunctions2p2e_new {1.83259571, 0., 1.83259571, 2.87979327, 1.83259571, 1.83259571, 1.83259571, 3.40339204, 3.66519143,
2020
3.40339204, 3.40339204, 3.14159265, 3.92699082, 3.92699082, 2.35619449, 2.35619449, 3.92699082, 3.92699082,
2121
3.92699082, 3.66519143, 3.66519143, 3.66519143, 2.61799388, 3.66519143, 1.57079633, 1.57079633, 1.57079633,
2222
1.04719755, 1.04719755, 1.04719755, 1.04719755, 1.57079633
23-
};
23+
}; // Option2 from paper
2424

2525

26-
const std::vector<double> shakingfunction2platt {1.83259571, 1.83259571, 1.83259571, 1.83259571, 1.83259571, 1.83259571, 1.04719755, 1.04719755, 1.04719755,0., 0., 0.52359878, 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.26179939, 0., 0., 0., 0., 0., 0., 0., 0};
26+
const std::vector<double> shakingfunction2platt {1.83259571, 1.83259571, 1.83259571, 1.83259571, 1.83259571,
27+
1.83259571, 1.04719755, 1.04719755, 1.04719755,0., 0., 0.52359878,
28+
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.26179939, 0., 0., 0., 0., 0., 0., 0., 0};// Lattice sensitive interferometer sequence
2729

2830
const int maxSteps = shakingfunctions.size();
2931

@@ -35,10 +37,11 @@ constexpr double acclim = 0.1 * ACC_NORM; // dacc is the epsilon in acceleratio
3537

3638
int main()
3739
{
38-
Eigen::VectorXd a_list = Eigen::VectorXd::LinSpaced(101,-0.0225,0.0225);
39-
Eigen::VectorXd V_list = Eigen::VectorXd::LinSpaced(51, 9.0, 11.0);
40+
// Eigen::VectorXd a_list = Eigen::VectorXd::LinSpaced(101,-0.0225,0.0225);
41+
Eigen::VectorXd a_list = Eigen::VectorXd::LinSpaced(101,-0.00446,0.00446);
42+
Eigen::VectorXd V_list = Eigen::VectorXd::LinSpaced(51, 9.5, 10.5);
4043

41-
std::vector<double> currentshaking = shakingfunctions2p2e_new;
44+
std::vector<double> currentshaking = shakingfunctions2p2e; // Option 1
4245

4346
// Eigen::VectorXd V_list(1) ;
4447
// V_list <<10.0;
@@ -57,8 +60,8 @@ int main()
5760
for (int Vindex =0; Vindex < V_list.size() ; Vindex++){
5861
Wavepacket wp (a_list[aindex], V_list[Vindex]);
5962
int sign = 1;
60-
for (int i=0; i< int(shakingfunctions2p2e.size()); i++){
61-
wp.step(sign *shakingfunctions2p2e[i], omega);
63+
for (int i=0; i< int(currentshaking.size()); i++){
64+
wp.step(sign *currentshaking[i], omega);
6265
sign = -1*sign;
6366
};
6467

0 commit comments

Comments
 (0)