我打算使用shape_extraction命令提取时间序列形状。但是,我不知道它是如何实现的(https://www.rdocumentation.org/packages/dtwclust/versions/1.3.0/topics/shape_extraction)。
这是一些示例代码
# Sample data
data(uciCT)
# Subset of interest, normalized
X <- t(sapply(CharTraj[1:5], zscore))
# Obtain centroid series
C <- shape_extraction(X, znorm = FALSE)
# Result
matplot(t(X), type = "l", col = 1:5)
points(C)