If I have a time series set such as x=[0,2,5,2,3,1,0] that represents an artifact.
What is the best way to match a similar set as x in a larger data set y?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.Sign up to join this community
A few approaches come to mind but this list is far from exhaustive:
You can do this in R. Your time series data is represented by
v and the pattern you wish to match by
p. Returns match indices.
> v<-c(1,2,3,4,5,6,7,8,9,1,2,3,4,6,7,5,8,1,2,3,4,5) > p<-"123" > gregexpr(p,paste(v,collapse = "")) []  1 10 18 attr(,"match.length")  3 3 3 attr(,"useBytes")  TRUE