ssmkit
master-68aed98
Main Page
Related Pages
Namespaces
Classes
Files
File List
transition_matrix.hpp
Go to the documentation of this file.
1
#ifndef SSMPACK_MODEL_TRANSITION_MATRIX_HPP
2
#define SSMPACK_MODEL_TRANSITION_MATRIX_HPP
3
4
#include <armadillo>
5
6
namespace
ssmkit {
7
namespace
map {
8
9
struct
TransitionMatrix
{
10
using
TParameter
= arma::vec;
11
using
TConditionVAR
= int;
12
13
TransitionMatrix
(arma::mat t) :
transfer
{t} {}
14
// should not be overloaded, should not be template
15
TParameter
operator()
(
const
TConditionVAR
&x)
const
{
16
return
transfer
.col(x);
17
}
18
19
arma::mat
transfer
;
20
};
21
22
23
}
// namespace map
24
}
// namespace ssmkit
25
26
#endif // SSMPACK_MODEL_TRANSITION_MATRIX_HPP
ssmkit::map::TransitionMatrix::TParameter
arma::vec TParameter
Definition:
transition_matrix.hpp:10
ssmkit::map::TransitionMatrix
Definition:
transition_matrix.hpp:9
ssmkit::map::TransitionMatrix::TConditionVAR
int TConditionVAR
Definition:
transition_matrix.hpp:11
ssmkit::map::TransitionMatrix::operator()
TParameter operator()(const TConditionVAR &x) const
Definition:
transition_matrix.hpp:15
ssmkit::map::TransitionMatrix::TransitionMatrix
TransitionMatrix(arma::mat t)
Definition:
transition_matrix.hpp:13
ssmkit::map::TransitionMatrix::transfer
arma::mat transfer
Definition:
transition_matrix.hpp:19
src
ssmkit
map
transition_matrix.hpp
Generated on Thu Jul 21 2016 11:41:12 for ssmkit by
1.8.6