9 #define DEV_N 0.0 //level of noise in operator 11 #define THETA_DEV 1.41421356237//M_PI;//phase noise level 13 #define Ps 0.5 //probability of telegraph noise 15 #define RATIO 1.176959769 //ratio between alpha and sigma 17 #define MU 2.2214//variance 18 #define THETA 0.2715 //skewness, variance 23 #include "aux_functions.h" 25 typedef complex<double> dcmplx;
35 Phase(
const int numvar, Rng *gaussian_rng, Rng *uniform_rng);
38 void fitness(
double *soln,
double *fitarray);
39 void avg_fitness(
double *soln,
const int K,
double *fitarray);
40 bool T_condition(
double *fitarray,
int *numvar,
int N_cut,
bool *mem_ptype,
double *memory_forT);
41 bool error_condition(
double *current_fitarray,
double *memory_fitarray,
int data_size,
double goal);
42 void boundary(
double *can1);
49 Rng *gaussian_rng, *uniform_rng;
63 inline void sqrtfac(
double *fac_mat);
64 inline void one_over_fac(
double *over_mat);
65 inline double cal_spart(
const int n,
const int k,
const int N);
68 inline bool noise_outcome(
const double phi,
const double PHI,
const int N);
69 inline void state_loss(
const int N);
70 inline double mod_2PI(
double PHI);
72 bool check_policy(
double error,
double sharp);
74 double rand_Gaussian(
double mean,
double dev);
75 double rand_Hat(
double PHI,
double dev);
77 inline double inv_erf(
double x);
78 inline int sgn(
double x);
79 double Lognormal(
double mu,
double sigma,
double peak);
81 double rand_RTN(
double PHI,
double ps,
double dev);
83 double rand_skewed(
double mean,
double dev,
double ratio);
Phase class for the problem of adaptive interferometric phase estimation including noise and loss.
Definition: phase_loss_opt.h:33
Problem class contains the prototype of the functions in the optimization problem that OptAlg class n...
Definition: problem.h:9
Phase(const int numvar, Rng *gaussian_rng, Rng *uniform_rng)
Definition: phase_loss_opt.cpp:10