Description Usage Arguments Value Examples
Simulate multiple curve data from a given model (either Normal or Poisson). It checks if parameters are valid and calls sim.data
to simulate data.
1 | HMTree.parameter(data, model.mode)
|
data |
a matrix of type double, number of colum represent the length of data, number of rows represent number of groups.!!!!!!!!!(TODO)!!!!!!!!!!! |
model.mode |
either Normal or Poisson; this function simulates |
simu.curves
returns a list of the following elements
true.mean.curve |
a vector of length |
data |
a matrix of |
1 2 3 4 5 6 7 8 | # set up parameters.
curve.length = 1024
model.mode = 'Poisson'
num.samples=10
set.seed(666)
res.pois = simu.curves(curve.length=curve.length, model.mode=model.mode, num.samples=num.samples)
simu.data<-res.pois$data
data<-HMTree.parameter<-function(simu.data,model.mode)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.