Description Usage Arguments Details Value Examples
This function lets you generate any pattern you specify in the parameters. For known definitions, either check the examples or the vignettes. This is mainly used to test either your own or this smoothing and recognition function.
1 2 3 |
start |
Starting value |
dlength |
Integer. Length of the signal part of the time series |
tot.spread |
Integer. Difference between the lowest and highest value of the time series |
presig |
Integer. Length of the pre-signal part of the time series |
postsig |
Integer. Length of the post-signal part of the time series |
plength |
No longer needed, kept for compatability. Set to 0. |
parts |
Vector of Integers. Must be the same length as |
sprd |
Vector of Integers. Must be the same length as |
For an overview of the package capabilities, click here rpatrec
Time series with (optional) pre- or post signal, and the specified pattern.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
#create a standard HS pattern:
generator()
#
#create a shifted head and shoulders pattern
generator(sprd = c(20,10,90,40,60))
#
#create a Double Tops pattern
generator(plength=3,parts=c(25,50,75),sprd=c(80,40,80))
#
#create a Rectangle Tops pattern
generator(plength=5,parts=c(20,40,50,60,80),sprd=c(80,40,80,40,80))
#
#create a single peak, 10 data points, max is approximately 10
generator(0,10,10,0,0,0,50,100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.