Improved prob.h/cpp code and unit tests
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Mon, 29 Mar 2010 15:02:32 +0000 (17:02 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Mon, 29 Mar 2010 15:02:32 +0000 (17:02 +0200)
commit06661f4fdb0fa4a5f63223d7d520735342a088ab
treea69310c323dbfcfb98d2ff9431487d747365393f
parent245297f1c37cd4e407212c03cce6c388c8525f9e
Improved prob.h/cpp code and unit tests

  - TProb<T>::accumulate() now also applies op2 to init
  - Fixed bug by renaming TProb<T>::operator<=() to TProb<T>::operator<()
  - TProb<T>& operator/= (T x) now yields 0 when dividing by 0
  - Changed format of TProb<T> when streamed to an ostream
ChangeLog
include/dai/prob.h
tests/unit/prob.cpp