init_function.hh
Go to the documentation of this file.
1 //=====================================================
2 // File : init_function.hh
3 // Author : L. Plagne <laurent.plagne@edf.fr)>
4 // Copyright (C) EDF R&D, lun sep 30 14:23:18 CEST 2002
5 //=====================================================
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 //
20 #ifndef INIT_FUNCTION_HH
21 #define INIT_FUNCTION_HH
22 
23 double simple_function(int index)
24 {
25  return index;
26 }
27 
28 double simple_function(int index_i, int index_j)
29 {
30  return index_i+index_j;
31 }
32 
33 double pseudo_random(int /*index*/)
34 {
35  return std::rand()/double(RAND_MAX);
36 }
37 
38 double pseudo_random(int /*index_i*/, int /*index_j*/)
39 {
40  return std::rand()/double(RAND_MAX);
41 }
42 
43 
44 double null_function(int /*index*/)
45 {
46  return 0.0;
47 }
48 
49 double null_function(int /*index_i*/, int /*index_j*/)
50 {
51  return 0.0;
52 }
53 
54 #endif
double pseudo_random(int)
double null_function(int)
double simple_function(int index)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:14