# NOT RUN {
data("drink_glass")
# initialize with any time series
m1 <- dba(lot = drink_glass[1:10], m0 = drink_glass[[1]],
dist_method = "norm2", iterMax = 20)
# initialize with the centroid
tmp <- centroid(drink_glass)
cent <- drink_glass[[tmp$centroid_index]]
m1 <- dba(lot = drink_glass[1:10], m0 = cent,
dist_method = "norm2", iterMax = 20)
# plot all dimensions of the barycenters m_n per iteration:
plot(m1)
# plot the distances of the barycenter of one iteration m_n
# to the barycenter of the previous iteration m_n-1:
plot(m1, type = "m2m")
# plot the average distances of the barycenter m_n
# to the list of time series:
plot(m1, type = "m2lot")
# }
Run the code above in your browser using DataLab