% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toyModel.R
\name{toyModel}
\alias{toyModel}
\title{Generate Toy HMM Data}
\usage{
toyModel(type = c("simple", "weather", "leftright"), T_len = 500L, seed = NULL)
}
\arguments{
\item{type}{Type of toy model:
\describe{
  \item{\code{"simple"}}{2 states, 3 observations. States alternate with
    high probability. Clear emission separation.}
  \item{\code{"weather"}}{3 states (Sunny/Cloudy/Rainy), 4 observations
    (Walk/Shop/Clean/Stay). Classic weather HMM.}
  \item{\code{"leftright"}}{3 states with left-to-right transitions only.
    Models sequential processes.}
}}

\item{T_len}{Length of observation sequence (default: 500)}

\item{seed}{Random seed (default: NULL)}
}
\value{
A list with components:
  \describe{
    \item{Y}{Integer vector of observations}
    \item{X}{Integer vector of true hidden states}
    \item{T_mat}{True transition matrix}
    \item{O}{True emission matrix}
    \item{pi0}{True initial distribution}
    \item{K}{Number of hidden states}
    \item{N}{Number of observation symbols}
    \item{type}{Model type}
  }
}
\description{
Creates synthetic HMM data with visually clear structure for
demonstrations and testing.
}
\examples{
toy <- toyModel("simple", T_len = 200, seed = 42)
table(toy$X)
table(toy$Y)
}
