Closed fdeon closed 6 years ago
Thanks for your reproducible code sample, will have a look at it at the weekend.
Fixed a bug which could cause wrong DTW distance calculation for matrices of different length when using multiple threads: https://github.com/alexeckert/parallelDist/commit/f2676e065cc32fb852020dfd8cbfa2439f238566
The new version is not available at CRAN, yet. It can be installed via install_github
:
library(devtools)
install_github("alexeckert/parallelDist")
It's working correctly now. Thanks for your very quick reply.
Hello Alex, thanks for the nice package.
I am trying to compute a matrix of DTW distances between 1d sequences with unequal lenghts. I'm passing the signals as a list of (1 by len_i) matrices.
However running parDist with "threads" > 1 most of the times crashes the R session. It does not crash if the len_i are all equal.
Funnily enough, I seem to find that: (1) it invariably crashes when running on a "fresh" R session (2) it sometimes does run (on signals with unequal lengths) in a session in which I have previously run the function with equal-length signals of about the same size. (some memory allocation issue maybe?)
Also, I can't find in the documentation how the function deals with slope-limited "step.pattern"s (e.g. symmetricP1), when for some pairs of signals happen to have length ratio above / below the max local slope.
I'm adding a little code snippet that reproduces the issue on my system.
Thanks for any help you might provide. Regards,
Fabio