simSegData: Simulate exemplary segmentation data.

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Simulate exemplary segmentation data.

Usage

1
simSegData(nseg=10, J=3, soj, emis, seed=1234, toPlot=FALSE)

Arguments

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

Value

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

Examples

1
2
3
	soj<-list(type='pois', lambda=c(200, 100, 10))
	emis<-list(type='pois', lambda=1:3)
	simSegData(soj=soj, emis=emis)

biomvRCNS documentation built on Nov. 8, 2020, 6:49 p.m.