# NOT RUN {
lot <- lapply(1:10, function(i){matrix(rnorm(100), ncol=2)})
# }
# NOT RUN {
# per default all minus 1 available cores are used
result <- dtw_dismat(lot = lot, dist_method = "norm2", ws = 20,
return_matrix = FALSE)
# }
# NOT RUN {
# for few time series you can set ncores=0 for NON-parallel computation
result <- dtw_dismat(lot = lot, dist_method = "norm2", ws = 20,
return_matrix = FALSE, ncores = 1)
# }
Run the code above in your browser using DataLab