gen.curves: Simulate multiple curve data from a given model (either...

Description Usage Arguments Value

View source: R/simulate.data.R

Description

Simulate multiple curve data from a given model (either Normal or Poisson).

Usage

1
2
gen.curves(curve.str, curve.length, stretch, offset, model.mode, num.groups,
  num.samples, normal.sigma)

Arguments

curve.str

curve type for true signal; used in the function simulate_true_curve.

curve.length

length of curve data

stretch

parameter used to generate true signal; used in the function simulate_true_curve.

offset

parameter used to generate true signal; used in the function simulate_true_curve.

model.mode

either Normal or Poisson; this function simulates num.samples number of curve data under a model provided as model.mode.

num.groups

how many groups of samples should be simulated; currently this function can simulate data from one group.

num.samples

how many curve data should be simulated.

normal.sigma

standard deviation in Normal model;

Value

gen.curves returns a list of the following elements

true.mean.curve

a vector of length curve.length-vector; it contains true mean curve generated by the function simulate_true_curve

data

a matrix of num.samples by curve.length; it contains num.samples curve data; each row contains simulated data under a given model model.mode with mean curve true.mean.curve


shimlab/HMTree documentation built on May 29, 2019, 9:25 p.m.