CanonicalWarpingCorrespondence
CanonicalWarpingCorrespondence[s1,s2]
gives the canonical time warping (CTW) correspondence between sequences s1 and s2.
CanonicalWarpingCorrespondence[s1,s2,warp]
uses warp as initial warping correspondence.
CanonicalWarpingCorrespondence[s1,s2,warp,win]
uses a window win for local search.
Details and Options
- Canonical time warping (CTW) iteratively performs spatial transformations and dynamic time warping on the reference sequence s1 and the query sequence s2 to find the alignment with minimal distance between sequences.
- The sequences si can be lists of numeric scalars or vectors. In contrast to dynamic time warping, elements of s1 and s2 can be of different dimensions.
- CanonicalWarpingCorrespondence returns {{n1,…,nk},{m1,…,mk}} of non-decreasing positions such that s1〚ni〛 correspond to s2〚mi〛.
- Corresponding positions attempt to minimize the distance over all possible such positions and with the constraint that all elements of s1 and s2 are represented as some s1〚ni〛 and s2〚mj〛, respectively.
- Spatial transformation matrices α and β are computed in each iteration using canonical correlation analysis.
- Compute the effective distance using CanonicalWarpingDistance.
- Possible settings for the search window win are:
-
Automatic a full search r a slanted band window of radius {"SlantedBand",r} a slanted band window of radius {"Band",r} band window of radius (Sakoe–Chiba) {"Parallelogram",a} parallelogram window placed at origin with slopes and (Itakura) - The following options are supported:
-
DistanceFunction Automatic distance function used in dynamic time warping MaxIterations Automatic maximal number of iterations Method Automatic additional parameters - The following options are available through Method->opts:
-
"DimensionsToKeep" Automatic dimensions after projection "EnergyThreshold" Automatic fraction of "energy" to be kept "Lambdas" Automatic regularization values "MatchingIntervals" Automatic whether to match the query to the full reference or part of the reference - Possible settings for the "MatchingIntervals" option include:
-
Automatic a full match "Flexible" flexible at both ends "FlexibleEnd" flexible only at the end of the interval
Examples
open allclose allBasic Examples (2)
Scope (9)
Data (6)
Find the correspondence between two sequences of numerical scalars with different length:
Find the correspondence between two sequences of vectors:
Find the correspondence between a sequence of scalars and a sequence of 3D points:
Find the correspondence between two sequences of quantities with compatible units:
All units are converted to base SI units:
Find the correspondence between two sequences of quantity vectors with compatible units:
Find the correspondence between a sequence of quantities and a sequence of scalars:
The scalars are interpreted as if they had a compatible unit from SI base units:
Initial Warping (1)
Options (1)
Text
Wolfram Research (2016), CanonicalWarpingCorrespondence, Wolfram Language function, https://reference.wolfram.com/language/ref/CanonicalWarpingCorrespondence.html.
CMS
Wolfram Language. 2016. "CanonicalWarpingCorrespondence." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CanonicalWarpingCorrespondence.html.
APA
Wolfram Language. (2016). CanonicalWarpingCorrespondence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CanonicalWarpingCorrespondence.html