malig = mtwdtw(query.list, template, weight = "logistic",
alpha = 0.1, beta = 100)
# Classify interval
from = as.Date("2009-09-01")
to = as.Date("2013-09-01")
best_class = classfyIntervals(x=malig, from=from, to=to, by = "6 month",
normalized=TRUE, overlap=.5, threshold=Inf)
best_class
Run the code above in your browser using DataLab