Added the images for test.
[pom.git] / global.h
1
2 //////////////////////////////////////////////////////////////////////////////////
3 // This program is free software: you can redistribute it and/or modify         //
4 // it under the terms of the version 3 of the GNU General Public License        //
5 // as published by the Free Software Foundation.                                //
6 //                                                                              //
7 // This program is distributed in the hope that it will be useful, but          //
8 // WITHOUT ANY WARRANTY; without even the implied warranty of                   //
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU             //
10 // General Public License for more details.                                     //
11 //                                                                              //
12 // You should have received a copy of the GNU General Public License            //
13 // along with this program. If not, see <http://www.gnu.org/licenses/>.         //
14 //                                                                              //
15 // Written by Francois Fleuret                                                  //
16 // (C) Ecole Polytechnique Federale de Lausanne                                 //
17 // Contact <pom@epfl.ch> for comments & bug reports                             //
18 //////////////////////////////////////////////////////////////////////////////////
19
20 #ifndef GLOBAL_H
21 #define GLOBAL_H
22
23 #include "misc.h"
24
25 // We used the same prior at every location, but POMSolver::solve
26 // takes as parameter a vector of priors if you want
27 extern scalar_t global_prior;
28
29 // The parameters of the Normal law for the conditional image density,
30 // given the true state. Mu does not appear in the paper, sigma does.
31 extern scalar_t global_mu_image_density;
32 extern scalar_t global_sigma_image_density;
33
34 // When we iterate the solver, we smooth the estimate to prevent from
35 // oscillating effects that tend to appear naturally
36 extern scalar_t global_smoothing_coefficient;
37
38 // Ugly parameters for defining the convergence of the solver. I guess
39 // there are far better ways to do
40
41 // Hard bound on the number of iterations
42 extern int global_max_nb_solver_iterations;
43
44 // What error is considered acceptable
45 extern scalar_t global_error_max;
46
47 // How many steps under the global_error_max defines convergence
48 extern int global_nb_stable_error_for_convergence;
49
50 // If the probability of absence is greated than that, ignore the
51 // avatar in the computation of the average image to save computation
52 extern scalar_t global_proba_ignored;
53
54 #endif