Improved factor.h/cpp code and finished corresponding unit tests
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Fri, 2 Apr 2010 15:20:06 +0000 (17:20 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Fri, 2 Apr 2010 15:20:06 +0000 (17:20 +0200)
commitfc7b44feb5ddccc40530a8a84934f1c1aae3b755
tree3b72cbbd8e8dc5fd22082e05fe926d936bd732e5
parent81c153484a31d9c0b5d69ebe36edf4996670e5e5
Improved factor.h/cpp code and finished corresponding unit tests

- Fixed bug in min( const TFactor<T> &, const TFactor<T> & )
- Fixed bug in max( const TFactor<T> &, const TFactor<T> & )
- Added TFactor<T>::takeAbs()
- Added TFactor<T>::takeExp()
- Added TFactor<T>::takeLog( bool )
- Added TFactor<T>::operator-() const
- Renamed TFactor<T>::states() into TFactor<T>::nrStates()
14 files changed:
ChangeLog
include/dai/factor.h
include/dai/prob.h
src/bbp.cpp
src/bp.cpp
src/bp_dual.cpp
src/cbp.cpp
src/emalg.cpp
src/factor.cpp
src/factorgraph.cpp
src/gibbs.cpp
src/matlab/matlab.cpp
swig/example_sprinkler.m
tests/unit/factor.cpp