simSegData {biomvRCNS} | R Documentation |
Simulate exemplary segmentation data.
simSegData(nseg=10, J=3, soj, emis, seed=1234, toPlot=FALSE)
nseg |
size of initial segments pool |
J |
states number |
soj |
a list object containing sojourn settings |
emis |
a list object containing emission settings |
seed |
seed for simulation |
toPlot |
whether to output a pdf image of the simulated series |
a list object containing the simulated data and the segment info
E |
a numeric vector of the simulated data serie |
L |
a vector of the length for each continuous segment |
S |
a vector of state assignment for each segment |
pdf |
the name of the output pdf file if any |
soj<-list(type='pois', lambda=c(200, 100, 10)) emis<-list(type='pois', lambda=1:3) simSegData(soj=soj, emis=emis)