Added empty() to BayesNet
parent
f8b96ad090
commit
76b88bd06e
|
@ -105,6 +105,11 @@ public:
|
|||
return conditionals_.size();
|
||||
}
|
||||
|
||||
/** @return true if there are no conditionals/nodes */
|
||||
bool empty() const {
|
||||
return conditionals_.empty();
|
||||
}
|
||||
|
||||
/** print statistics */
|
||||
void printStats(const std::string& s = "") const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue