simSegData {biomvRCNS}R Documentation

Simulate exemplary segmentation data.

Description

Simulate exemplary segmentation data.

Usage

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

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

[Package biomvRCNS version 1.22.0 Index]