find_discords_brute_force: Finds a discord using brute force algorithm.

Description Usage Arguments References Examples

View source: R/RcppExports.R

Description

Finds a discord using brute force algorithm.

Usage

1
find_discords_brute_force(ts, w_size, discords_num)

Arguments

ts

the input timeseries.

w_size

the sliding window size.

discords_num

the number of discords to report.

References

Keogh, E., Lin, J., Fu, A., HOT SAX: Efficiently finding the most unusual time series subsequence. Proceeding ICDM '05 Proceedings of the Fifth IEEE International Conference on Data Mining

Examples

1
2
3
4
discords = find_discords_brute_force(ecg0606[1:600], 100, 1)
plot(ecg0606[1:600], type = "l", col = "cornflowerblue", main = "ECG 0606")
lines(x=c(discords[1,2]:(discords[1,2]+100)),
   y=ecg0606[discords[1,2]:(discords[1,2]+100)], col="red")

Example output

Loading required package: Rcpp

jmotif documentation built on March 26, 2020, 7:23 p.m.