Description Usage Arguments Value Examples
View source: R/simulate.data.R
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 2 | simu.curves(curve.length, model.mode, num.groups = 1, num.samples = 10,
normal.sigma = 0.5, stretch = 5, offset = 15, curve.str = "mine")
|
curve.length: |
length of curve data |
model.mode: |
either Normal or Poisson; this function simulates |
num.groups: |
1 by default; how many groups of samples should be simulated; currently this function can simulate data from one group. |
num.samples: |
10 by default; how many curve data should be simulated. |
normal.sigma: |
0.5 by default; standard deviation in Normal model; |
curve.str: |
"mine" by default; curve type for true signal; used in the function |
stretch: |
5 by default; parameter used to generate true signal; used in the function |
offset; |
15 by default; parameter used to generate true signal; used in the function |
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 | # 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)
str(res.pois)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.