File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ of the initial state. Posterior draws from the hidden states can be computed
3838separately.
3939
4040A more complete mathematical definition of the HMM model and function interface
41- is given in the [ Hidden Markov Models] ( https://mc-stan.org/docs/2_24/ functions-reference/hidden-markov-models.html )
41+ is given in the [ Hidden Markov Models] ( https://mc-stan.org/docs/functions-reference/hidden-markov-models.html )
4242section of the Function Reference Guide.
4343
4444There are three functions
@@ -120,7 +120,7 @@ The data is the previously generated sequence of $N$ measurements:
120120``` {stan, output.var = "", eval = FALSE}
121121data {
122122 int N; // Number of observations
123- real y [N];
123+ array [N] real y ;
124124}
125125```
126126
@@ -267,7 +267,7 @@ can be generated with `hmm_latent_rng`:
267267
268268``` {stan, output.var = "", eval = FALSE}
269269generated quantities {
270- int [N] y_sim = hmm_latent_rng(log_omega, Gamma, rho)
270+ array [N] int y_sim = hmm_latent_rng(log_omega, Gamma, rho);
271271}
272272```
273273
You can’t perform that action at this time.
0 commit comments