Implementation of Markov-Chains.
More...
#include <chain.hpp>
Implementation of Markov-Chains.
Definition at line 84 of file chain.hpp.
◆ index_type
◆ ~chain()
viennashe::models::chain::~chain |
( |
| ) |
|
|
inline |
◆ add_rate() [1/2]
◆ add_rate() [2/2]
Adds a rate between to states. Additionally adds the given states if necessary.
Definition at line 113 of file chain.hpp.
◆ add_state()
void viennashe::models::chain::add_state |
( |
state_base const & |
st | ) |
|
|
inline |
Adds a single state to the chain.
Definition at line 103 of file chain.hpp.
◆ get_rate() [1/2]
Returns the acutal rate (double value!) between to states identified by their resp. ids.
Definition at line 151 of file chain.hpp.
◆ get_rate() [2/2]
Returns the actual rate (double value!) between to states.
Definition at line 140 of file chain.hpp.
◆ get_rate_matrix()
template<typename MatrixT >
void viennashe::models::chain::get_rate_matrix |
( |
MatrixT & |
rate_matrix | ) |
const |
|
inline |
Fills the given rate_matrix.
- Parameters
-
rate_matrix | An ublas compatible matrix. The matrix needs to be properly allocated! |
Definition at line 208 of file chain.hpp.
◆ get_state() [1/2]
◆ get_state() [2/2]
◆ has_state()
bool viennashe::models::chain::has_state |
( |
index_type |
idx | ) |
const |
|
inline |
Returns true if a state identified by its id is in the chain.
Definition at line 247 of file chain.hpp.
◆ print_occupancies()
void viennashe::models::chain::print_occupancies |
( |
| ) |
const |
|
inline |
Prints the occupancies of each state in the chain onto screen (log::info). Usefull for debugging.
Definition at line 227 of file chain.hpp.
◆ print_rate_matrix()
void viennashe::models::chain::print_rate_matrix |
( |
| ) |
const |
|
inline |
Prints the rate matrix onto screen (log::info). Usefull for debugging.
Definition at line 164 of file chain.hpp.
◆ rate() [1/2]
Returns a constant reference to a rate between to states identified by their resp. ids.
Definition at line 127 of file chain.hpp.
◆ rate() [2/2]
Returns a constant reference to a rate between the given states.
Definition at line 121 of file chain.hpp.
◆ size1()
index_type viennashe::models::chain::size1 |
( |
| ) |
const |
|
inline |
Returns the row size of the rate-matrix.
Definition at line 146 of file chain.hpp.
◆ size2()
index_type viennashe::models::chain::size2 |
( |
| ) |
const |
|
inline |
Returns the column size of the rate-matrix.
Definition at line 148 of file chain.hpp.
The documentation for this class was generated from the following file: