libDAI
io.h
Go to the documentation of this file.
1 /* This file is part of libDAI - http://www.libdai.org/
2  *
3  * Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
4  *
5  * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
6  */
7 
8 
11 
12 
13 #ifndef __defined_libdai_io_h
14 #define __defined_libdai_io_h
15 
16 
17 #include <dai/factor.h>
18 #include <vector>
19 #include <map>
20 
21 
22 namespace dai {
23 
24 
26 
33 void ReadUaiAieFactorGraphFile( const char *filename, size_t verbose, std::vector<Var>& vars, std::vector<Factor>& factors, std::vector<Permute>& permutations );
34 
35 
37 
41 std::vector<std::map<size_t, size_t> > ReadUaiAieEvidenceFile( const char* filename, size_t verbose );
42 
43 
44 } // end of namespace dai
45 
46 
47 #endif
std::vector< std::map< size_t, size_t > > ReadUaiAieEvidenceFile(const char *filename, size_t verbose)
Reads evidence (a mapping from observed variable labels to the observed values) from a file in the UA...
Definition: io.cpp:147
void ReadUaiAieFactorGraphFile(const char *filename, size_t verbose, std::vector< Var > &vars, std::vector< Factor > &factors, std::vector< Permute > &permutations)
Reads factor graph (as a pair of a variable vector and factor vector) from a file in the UAI approxim...
Definition: io.cpp:21
Namespace for libDAI.
Definition: alldai.cpp:16
Defines TFactor<> and Factor classes which represent factors in probability distributions.