The basic concept of a state in Markov-Chains.
More...
#include <chain.hpp>
The basic concept of a state in Markov-Chains.
Definition at line 39 of file chain.hpp.
◆ index_type
◆ state_base() [1/2]
viennashe::models::state_base::state_base |
( |
index_type |
id, |
|
|
std::string const & |
name |
|
) |
| |
|
inline |
◆ state_base() [2/2]
viennashe::models::state_base::state_base |
( |
state_base const & |
s | ) |
|
|
inline |
◆ ~state_base()
virtual viennashe::models::state_base::~state_base |
( |
| ) |
|
|
inlinevirtual |
◆ clone()
virtual state_base * viennashe::models::state_base::clone |
( |
| ) |
const |
|
inlinevirtual |
Basic interface to get a clone (uses new operator!) of the current object for storage. The caller takes ownership!
Definition at line 74 of file chain.hpp.
◆ id()
index_type viennashe::models::state_base::id |
( |
| ) |
const |
|
inline |
Returns the unique id of the state.
Definition at line 51 of file chain.hpp.
◆ name()
std::string viennashe::models::state_base::name |
( |
| ) |
const |
|
inline |
Returns the name of the state for convenience and debugability.
Definition at line 53 of file chain.hpp.
◆ occupancy() [1/2]
double viennashe::models::state_base::occupancy |
( |
| ) |
const |
|
inline |
Returns the occupancy f or p of the state. It has to be a number in [0,1].
Definition at line 56 of file chain.hpp.
◆ occupancy() [2/2]
void viennashe::models::state_base::occupancy |
( |
double |
o | ) |
|
|
inline |
Sets the states occupancy.
- Parameters
-
o | The new occupancy. Must be a number in [0,1] |
Definition at line 61 of file chain.hpp.
The documentation for this class was generated from the following file: