← Documentation
ADS-IDAC Engine 5.0.0
bncore::VariableMetadata Struct Reference

Everything a Graph stores about one discrete variable. More...

#include <node.hpp>

Public Member Functions

std::size_t num_states () const
 Number of states of the variable. More...
 

Public Attributes

NodeId id
 handle of this variable in its Graph More...
 
std::string name
 
std::vector< std::string > states
 
std::vector< double > cpt
 

Detailed Description

Everything a Graph stores about one discrete variable.

Definition at line 23 of file node.hpp.

Member Function Documentation

◆ num_states()

std::size_t bncore::VariableMetadata::num_states ( ) const
inline

Number of states of the variable.

Definition at line 34 of file node.hpp.

References states.

Referenced by bncore::DiscretizationManager::should_split().

Here is the caller graph for this function:

Member Data Documentation

◆ cpt

std::vector<double> bncore::VariableMetadata::cpt

Flat conditional probability table, empty until Graph::set_cpt() is called. Graph::set_cpt() documents the layout.

Definition at line 31 of file node.hpp.

Referenced by bncore::BatchWorkspace::rebuild_clique_potentials().

◆ id

NodeId bncore::VariableMetadata::id

handle of this variable in its Graph

Definition at line 24 of file node.hpp.

◆ name

std::string bncore::VariableMetadata::name

◆ states


The documentation for this struct was generated from the following file: