projects
/
libdai.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b513e5f
)
[Frederik Eaton] Added constructors for BBPCostFunction
author
Joris Mooij
<joris.mooij@tuebingen.mpg.de>
Fri, 27 Nov 2009 21:23:18 +0000
(22:23 +0100)
committer
Joris Mooij
<joris.mooij@tuebingen.mpg.de>
Fri, 27 Nov 2009 21:23:18 +0000
(22:23 +0100)
include/dai/bbp.h
patch
|
blob
|
history
diff --git
a/include/dai/bbp.h
b/include/dai/bbp.h
index
ca849e5
..
b24cf39
100644
(file)
--- a/
include/dai/bbp.h
+++ b/
include/dai/bbp.h
@@
-38,6
+38,12
@@
DAI_ENUM(BBPCostFunctionBase,CFN_GIBBS_B,CFN_GIBBS_B2,CFN_GIBBS_EXP,CFN_GIBBS_B_
/// Predefined cost functions that can be used with BBP
class BBPCostFunction : public BBPCostFunctionBase {
public:
+ /// Default constructor
+ BBPCostFunction() : BBPCostFunctionBase() {}
+
+ /// Construct from BBPCostFunctionBase \a x
+ BBPCostFunction( const BBPCostFunctionBase &x ) : BBPCostFunctionBase(x) {}
+
/// Returns whether this cost function depends on having a Gibbs state
bool needGibbsState() const;