Class ModelDiagram¶
Class to create model diagrams from transition data. More...
#include <modeldiagram-bones.hpp>
Public Functions¶
| Type | Name |
|---|---|
| ModelDiagram () |
|
| void | draw_from_data (DiagramType diagram_type, const std::vector< std::string > & states, const std::vector< epiworld_double > & tprob, const std::string & fn_output="", bool self=false) |
| void | draw_from_file (DiagramType diagram_type, const std::string & fn_transition, const std::string & fn_output="", bool self=false) |
| void | draw_from_files (DiagramType diagram_type, const std::vector< std::string > & fns_transition, const std::string & fn_output="", bool self=false) |
Detailed Description¶
This class reads transition data from epidemiological model simulations and generates visual diagrams representing the state transitions. It supports multiple diagram formats, including Mermaid and DOT.
Public Functions Documentation¶
function ModelDiagram¶
function draw_from_data¶
inline void ModelDiagram::draw_from_data (
DiagramType diagram_type,
const std::vector< std::string > & states,
const std::vector< epiworld_double > & tprob,
const std::string & fn_output="",
bool self=false
)
function draw_from_file¶
inline void ModelDiagram::draw_from_file (
DiagramType diagram_type,
const std::string & fn_transition,
const std::string & fn_output="",
bool self=false
)
function draw_from_files¶
inline void ModelDiagram::draw_from_files (
DiagramType diagram_type,
const std::vector< std::string > & fns_transition,
const std::string & fn_output="",
bool self=false
)
The documentation for this class was generated from the following file epiworld-src/include/epiworld/modeldiagram-bones.hpp