Learn R Programming

rpatrec (version 1.0.1)

slicer: Recognise Multiple Patterns in a sinlge time series

Description

Break time series data into smaller 'windows' and pass them to the interpret function. The results are summarised in the output. For details, run interpret on specific windows only.

Usage

slicer(data, length, step = 1, useriq = FALSE, ...)

Arguments

data
Time series Data
length
Length of the 'windows'
step
Number of Data Points between windows
useriq
User-built recognition function. Set to FALSE if using inbuilt recognition capabilities. Refer to the readme or the report on how to build your own recognition function
...
Parameters passed on to either the inbuilt or external recognition function. Check iq for the parameters.

Value

A list containing:
  • A vector for every window analysed showing 0 if no pattern and 1 if at least 1 pattern has been found.
  • A vector with the starting index of those windows where a pattern has been found.

Details

For an overview of the package capabilities, click here rpatrec

Examples

Run this code
## Not run: ------------------------------------
# #Generate 2 HS patterns
# a <- c(generator(),generator())
# #recognise both HS patterns
# #set window size to 100, step size to 100
# #switch off recognition for all patterns other than HS
# slicer(data = a, length = 100, step = 100, hsiq=TRUE, btpiq=FALSE, rtpiq=FALSE, dtpiq=FALSE)
## ---------------------------------------------

Run the code above in your browser using DataLab