Randomly spike the smoothed control rate of an NHPP according to the parameters.
nhppSpike(smoothRates, nSpike = 25, cptLenR = 4, cptLenMean = 10,
minGain = 1.5, maxGain = 10, minLoss = 0.01, maxLoss = 0.5, pGain = 0.6)
The smoothed rate estimate of the control process
Number of signal spikes
Parameter for signal width (parameter R of negative binomial)
Parameter for signal width (mean width)
Minimal Gain relative CN
Maximal Gain relative CN
Minimal Loss relative CN
Maximal Loss relative CN
Proportion of signal regions that are CN gain.
A matrix containing the actual signal spike information
The rate of the case PP to be simulated after signal spike
The signal width is randomly generated by negative binomial distribution with the two parameters given. The signal strength are uniformly drawn between the two limits.