test_data: Test data generator

Description Usage Arguments Value Examples

View source: R/test_data_generators.R

Description

Generate test data in order to test the filtering functions. To a signal function is added random noise contribution. V0.1 = noise is assumed gaussian

Usage

1
2
3
4
5
6
7
8
test_data(
  amplitude = 1,
  f = 100,
  npoints = 1000,
  type = "sinusoidal",
  x0 = 0,
  noise_contribution = 100
)

Arguments

amplitude

amplitude of the signal, default = 1

f

frequency of the sinusoidal signal, default = 100

npoints

number of points of the time serie

type

type of signal, default = sinusoidal. Available types: sinusoidal, gaussian

x0

signal position for gaussian type. Default = 0

noise_contribution

percentage pointing the maximum wanted signal/noise ratio. Default = 10

Value

A time serie with added random noise.

Examples

1

Convolutioner documentation built on March 11, 2021, 5:07 p.m.