From 0ebd6d6e0641f0eb2c9971163dfe171458cbb7d5 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Mon, 23 Apr 2012 22:40:36 +0100 Subject: [PATCH] improve constructor of VarNode --- packages/CLPBN/clpbn/bp/FactorGraph.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/CLPBN/clpbn/bp/FactorGraph.h b/packages/CLPBN/clpbn/bp/FactorGraph.h index f4b8932b6..a8e4880dc 100644 --- a/packages/CLPBN/clpbn/bp/FactorGraph.h +++ b/packages/CLPBN/clpbn/bp/FactorGraph.h @@ -15,8 +15,9 @@ class FacNode; class VarNode : public Var { public: - VarNode (VarId varId, unsigned nrStates) - : Var (varId, nrStates) { } + VarNode (VarId varId, unsigned nrStates, + int evidence = Constants::NO_EVIDENCE) + : Var (varId, nrStates, evidence) { } VarNode (const Var* v) : Var (v) { }