Description Usage Arguments Value References See Also
Computes the Edit distance with real penalty as described by Chen and Ng
(2004), constraining the possible matches to a maximum index difference of
windowSize
as desribed by Sakoe and Chiba (1978). The coding is
inspired by the TSdist::ERPDistance()
method, but faster because
point-to-point distances computation is integrated into the C++ code.
1 | ERPDistSakoeChiba(x, y, gapValue, windowSize)
|
x |
1st numeric vector/time series. |
y |
2nd numeric vector/time series. |
gapValue |
If an element of one series is not matched to the other series, its distance to the gapValue is computed instead (0 might be a sensible default for standardized series). |
windowSize |
The maximum index difference which is considered when matching elements. |
The distance as double (not-a-number if matching is not possible
as the time series lengths differ more than windowSize
).
Chen, L., & Ng, R. (2004, August). On the marriage of lp-norms and edit distance. In Proceedings of the Thirtieth international conference on Very large data bases-Volume 30 (pp. 792-803). VLDB Endowment.
Sakoe, H., & Chiba, S. (1978). Dynamic programming algorithm optimization for spoken word recognition. IEEE transactions on acoustics, speech, and signal processing, 26(1), 43-49.
Other Edit distance functions: EDRDistMult_fast
,
EDRDistSakoeChibaMult_fast
,
EDRDistSakoeChiba_fast
,
EDRDist_fast
,
ERPDistMult_fast
,
ERPDistSakoeChibaMult_fast
,
ERPDistSakoeChiba_fast
,
ERPDist_fast
, ERPDist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.