1 /* Copyright (C) 2006-2008 Joris Mooij [joris dot mooij at tuebingen dot mpg dot de]
2 Radboud University Nijmegen, The Netherlands /
3 Max Planck Institute for Biological Cybernetics, Germany
5 This file is part of libDAI.
7 libDAI is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 libDAI 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.
17 You should have received a copy of the GNU General Public License
18 along with libDAI; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 /// \brief Main libDAI header file
25 /// \todo Improve documentation
28 #ifndef __defined_libdai_alldai_h
29 #define __defined_libdai_alldai_h
33 #include <dai/daialg.h>
34 #include <dai/properties.h>
35 #include <dai/exactinf.h>
48 #ifdef DAI_WITH_TREEEP
49 #include <dai/treeep.h>
52 #include <dai/jtree.h>
58 #include <dai/gibbs.h>
62 /// Namespace for libDAI
66 /// Constructs a new approximate inference algorithm.
67 /** \param name The name of the approximate inference algorithm (should be one of the names in DAINames).
68 * \param fg The FactorGraph that the algorithm should be applied to.
69 * \param opts A PropertySet specifying the options for the algorithm.
70 * \return Returns a pointer to the new InfAlg object; it is the responsibility of the caller to delete it later.
72 InfAlg
*newInfAlg( const std::string
&name
, const FactorGraph
&fg
, const PropertySet
&opts
);
75 /// Contains the names of all approximate inference algorithms compiled into libDAI.
76 static const char* DAINames
[] = {
90 #ifdef DAI_WITH_TREEEP
106 } // end of namespace dai