[Depmix-commits] r557 - pkg/depmixS4/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Aug 6 11:08:31 CEST 2012


Author: ingmarvisser
Date: 2012-08-06 11:08:31 +0200 (Mon, 06 Aug 2012)
New Revision: 557

Modified:
   pkg/depmixS4/inst/doc/depmixS4.Rnw
Log:
Changed N to n in various places in the vignette for consistency (thanks to Kuan Xu for noting).

Modified: pkg/depmixS4/inst/doc/depmixS4.Rnw
===================================================================
--- pkg/depmixS4/inst/doc/depmixS4.Rnw	2012-07-31 16:19:28 UTC (rev 556)
+++ pkg/depmixS4/inst/doc/depmixS4.Rnw	2012-08-06 09:08:31 UTC (rev 557)
@@ -292,11 +292,11 @@
 	\phi_{1}(j) &:= \Prob(\vc{O}_{1}, S_{1}=j) = \pi_{j} \vc{b}_{j}(\vc{O}_{1}) 
 	\label{eq:fwd1} \\
 	\phi_{t}(j) &:= \Prob(\vc{O}_{t}, S_{t}=j|\vc{O}_{1:(t-1)}) %\\
-	= \sum_{i=1}^{N} [\phi_{t-1}(i)a_{ij} \vc{b}_{j}(\vc{O}_{t})] \times 
+	= \sum_{i=1}^{n} [\phi_{t-1}(i)a_{ij} \vc{b}_{j}(\vc{O}_{t})] \times 
 (\Phi_{t-1})^{-1},
 	\label{eq:fwdt} 
 \end{align}
-where $\Phi_{t}=\sum_{i=1}^{N} \phi_{t}(i)$. Combining 
+where $\Phi_{t}=\sum_{i=1}^{n} \phi_{t}(i)$. Combining 
 $\Phi_{t}=\Prob(\vc{O}_{t}|\vc{O}_{1:(t-1)})$, and 
 equation~(\ref{eq:condLogl}) gives the following expression for the 
 log-likelihood:
@@ -384,7 +384,7 @@
 %
 \begin{align}
 	\phi_t(i) &= \Prob(S_{t} = i|\vc{O}_{1:(t-1)}) 
-	\\ &=  \sum_{j=1}^N \phi_{t-1}(j) \Prob(S_t = i|S_{t-1}=j).
+	\\ &=  \sum_{j=1}^n \phi_{t-1}(j) \Prob(S_t = i|S_{t-1}=j).
 \end{align}
 %
 For later observations, we can then use this latter equation again,



More information about the depmix-commits mailing list