improve constructor of VarNode
This commit is contained in:
parent
3397f694fe
commit
0ebd6d6e06
@ -15,8 +15,9 @@ class FacNode;
|
|||||||
class VarNode : public Var
|
class VarNode : public Var
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VarNode (VarId varId, unsigned nrStates)
|
VarNode (VarId varId, unsigned nrStates,
|
||||||
: Var (varId, nrStates) { }
|
int evidence = Constants::NO_EVIDENCE)
|
||||||
|
: Var (varId, nrStates, evidence) { }
|
||||||
|
|
||||||
VarNode (const Var* v) : Var (v) { }
|
VarNode (const Var* v) : Var (v) { }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user