makeRandomTestData: generate a long vector of example data that is suitable to...

Description Usage Arguments Value Author(s) Examples

View source: R/hilbert.R

Description

This function generates a long numeric vector and fills it with many narrow Gaussian peaks of varying width and position. Around 30 the distribution of peak width is changed to be substantially larger. This feature is easily visible with the Hilbert curve visualization but much harder to spot with conventional 1D plots.

Usage

1
makeRandomTestData(len = 1e+07, numPeaks = 500)

Arguments

len

Length of the vector

numPeaks

Number of peaks to be placed in the vector

Value

A vector, of type 'numeric', with sample data.

Author(s)

Simon Anders, EMBL-EBI, sanders@fs.tum.de

Examples

1
# See the help page of function 'hilbertImage' for an example.

HilbertVis documentation built on Nov. 8, 2020, 6:50 p.m.