X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pom.git;a=blobdiff_plain;f=global.h;fp=global.h;h=342380b8ce09d2395e338cdd0dfda868715d15ee;hp=0000000000000000000000000000000000000000;hb=97a7e68f234cc09807d2d55f550e2516be0e9093;hpb=48c9926a2ed03737a3b024a85cda348caebf4cfe
diff --git a/global.h b/global.h
new file mode 100644
index 0000000..342380b
--- /dev/null
+++ b/global.h
@@ -0,0 +1,54 @@
+
+//////////////////////////////////////////////////////////////////////////////////
+// This program is free software: you can redistribute it and/or modify //
+// it under the terms of the version 3 of the GNU General Public License //
+// as published by the Free Software Foundation. //
+// //
+// This program is distributed in the hope that it will be useful, but //
+// WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
+// General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program. If not, see . //
+// //
+// Written by Francois Fleuret //
+// (C) Ecole Polytechnique Federale de Lausanne //
+// Contact for comments & bug reports //
+//////////////////////////////////////////////////////////////////////////////////
+
+#ifndef GLOBAL_H
+#define GLOBAL_H
+
+#include "misc.h"
+
+// We used the same prior at every location, but POMSolver::solve
+// takes as parameter a vector of priors if you want
+extern scalar_t global_prior;
+
+// The parameters of the Normal law for the conditional image density,
+// given the true state. Mu does not appear in the paper, sigma does.
+extern scalar_t global_mu_image_density;
+extern scalar_t global_sigma_image_density;
+
+// When we iterate the solver, we smooth the estimate to prevent from
+// oscillating effects that tend to appear naturally
+extern scalar_t global_smoothing_coefficient;
+
+// Ugly parameters for defining the convergence of the solver. I guess
+// there are far better ways to do
+
+// Hard bound on the number of iterations
+extern int global_max_nb_solver_iterations;
+
+// What error is considered acceptable
+extern scalar_t global_error_max;
+
+// How many steps under the global_error_max defines convergence
+extern int global_nb_stable_error_for_convergence;
+
+// If the probability of absence is greated than that, ignore the
+// avatar in the computation of the average image to save computation
+extern scalar_t global_proba_ignored;
+
+#endif