Replaced doubles by Reals, fixed two bugs
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 27 Oct 2009 13:00:56 +0000 (14:00 +0100)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 27 Oct 2009 13:00:56 +0000 (14:00 +0100)
commit587a545494f2e9538688acc78c7fe900665b7f15
tree4d0ffe0e777446032648cb68be526001ed21a284
parent357edeb0a4619cc997b05d13393a172721cb44a2
Replaced doubles by Reals, fixed two bugs

* Replaced all doubles by Reals where necessary
* Replaced constructor
    TFactor<T>::TFactor( const VarSet& vars, TIterator begin )
  by two constructors
    TFactor<T>::TFactor( const VarSet& vars, const T* p )
    TFactor<T>::TFactor( const VarSet& vars, const std::vector<S> &x )
* Fixed bugs (min and max were reversed) in
    TFactor<T> min( const TFactor<T> &, const TFactor<T> & )
    TFactor<T> max( const TFactor<T> &, const TFactor<T> & )
39 files changed:
ChangeLog
examples/example.cpp
examples/example_sprinkler.cpp
include/dai/bbp.h
include/dai/bp.h
include/dai/cbp.h
include/dai/daialg.h
include/dai/exactinf.h
include/dai/factor.h
include/dai/gibbs.h
include/dai/hak.h
include/dai/jtree.h
include/dai/lc.h
include/dai/mf.h
include/dai/mr.h
include/dai/prob.h
include/dai/regiongraph.h
include/dai/treeep.h
include/dai/util.h
src/bbp.cpp
src/bp.cpp
src/cbp.cpp
src/daialg.cpp
src/exactinf.cpp
src/factorgraph.cpp
src/gibbs.cpp
src/hak.cpp
src/jtree.cpp
src/lc.cpp
src/mf.cpp
src/mr.cpp
src/properties.cpp
src/regiongraph.cpp
src/treeep.cpp
src/util.cpp
tests/testbbp.cpp
tests/testdai.cpp
utils/createfg.cpp
utils/fginfo.cpp