Check arguments for hidden Markov model functions with a discrete latent state (lpdf, rng for latent states, and marginal probabilities for latent sates).
- Template Parameters
-
T_omega | type of the log likelihood matrix |
T_Gamma | type of the transition matrix |
T_rho | type of the initial guess vector |
- Parameters
-
[in] | log_omegas | log matrix of observational densities. |
[in] | Gamma | transition density between hidden states. |
[in] | rho | initial state |
[in] | function | the name of the function using the arguments. |
- Exceptions
-
`std::invalid_argument` | if Gamma is not square or if the size of rho is not the number of rows of log_omegas. |
`std::domain_error` | if rho is not a simplex or the rows of Gamma are not a simplex. |
Definition at line 30 of file hmm_check.hpp.