-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ac43be
commit a30e10a
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Package: hmm.discnp | ||
Version: 0.0-7 | ||
Date: 2006-08-24 | ||
Version: 0.0-8 | ||
Date: 2008-07-03 | ||
Title: Hidden Markov models with discrete non-parametric | ||
observation distributions. | ||
Author: Rolf Turner <rolf@math.unb.ca> and Limin Liu. | ||
Maintainer: Rolf Turner <rolf@math.unb.ca> | ||
Author: Rolf Turner <r.turner@auckland.ac.nz> and Limin Liu. | ||
Maintainer: Rolf Turner <r.turner@auckland.ac.nz> | ||
Depends: R (>= 0.99) | ||
Description: Fits hidden Markov models with discrete non-parametric | ||
observation distributions to data sets. Simulates data | ||
from such models. | ||
License: GPL version 2 or newer | ||
URL: http://www.math.unb.ca/~rolf/ | ||
Packaged: Thu Aug 24 16:44:27 2006; rolf | ||
Packaged: Thu Jul 3 10:58:24 2008; rturner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
revise.tpm <- function(xi,mixture) { | ||
if(mixture) matrix(apply(xi,2,sum)/sum(xi),byrow=T,nrow=nrow(xi)) | ||
if(mixture) matrix(apply(xi,2,sum)/sum(xi),byrow=TRUE,nrow=nrow(xi)) | ||
else xi/apply(xi,1,sum) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters