28 template<
class FACTOR,
class DERIVEDFACTOR>
30 std::cout << s <<
" P(";
35 for(
Key parent: parents())
37 std::cout <<
")" << std::endl;
41 template<
class FACTOR,
class DERIVEDFACTOR>
Base class for conditional densities.
const KeyFormatter & formatter
void print(const std::string &s="Conditional", const KeyFormatter &formatter=DefaultKeyFormatter) const
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
std::uint64_t Key
Integer nonlinear key type.
bool equals(const This &c, double tol=1e-9) const