R/hppSimulate.R

Defines functions hppSimulate

Documented in hppSimulate

hppSimulate <-
function(lambda, maxVal) {
	nEvents = rpois(1, lambda*maxVal)
	hppEvents = runif(nEvents, min=0, max=maxVal)
	return(hppEvents)
}

Try the seqCBS package in your browser

Any scripts or data that you put into this service are public.

seqCBS documentation built on May 2, 2019, 9:15 a.m.