Description Usage Arguments Details Value Author(s) Examples
Count the number of warping paths compatible with the constraints.
1 | countPaths(d,debug=FALSE)
|
d |
an object of class |
debug |
return an intermediate result |
Count how many possible warping paths exist in the alignment problem passed as an argument. The object passed as an argument is used to look up the problem parameters such as the used step pattern, windowing, open ends, and so on. The actual alignment is ignored.
Note that the number of paths grows exponentially with problems size. The result may be approximate when windowing functions are used.
If debug
is TRUE
, a matrix used for
the computation is returned instead of the final result.
The number of paths.
Toni Giorgino
1 2 3 | ds<-dtw(1:7+2,1:8,keep=TRUE,step=asymmetric);
countPaths(ds)
## Result: 126
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.