createExampleData: Create example data set for LoBrA

Description Usage Arguments Value Examples

View source: R/initExampleData.R

Description

Real signals and background noise originating from experimental settings or random events

Usage

1
2
createExampleData(components = c(70, 10, 10, 10), samples = 10,
  classes = 2, bg = 3, timepoints = rep(5, 3), myfile = NA)

Arguments

samples

number of experiments per class

classes

number of classes

bg

number of background measurements

timepoints

number of sample measurements for each spline

myfile

filename of the pdf file created.

component

vector numbers of background and informative components to be created.

Value

finalMatrix matrix of example data...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
 
  components = c(70,10,10,10)
  samples = 10
  classes = 2;
  bg = 3; 
  timepoints = rep(5,3)
  myfile = "D:/Dropbox/work/projects/LoBrA/results/sample"
  p=TRUE;
  longDataExample <- createExampleData(components, samples, classes, bg, timepoints)
  dim(longDataExample)
  save(longDataExample,file="data/longDataExample.RData")
  

ac-hauschild/LoBrA documentation built on May 26, 2019, 3:35 p.m.