LCSSTranslation:
Create a Translation Vector Using LCSS
Description
A function to return the best translation calculated using the LCSS method. The vector created can be used to translate trajectory2's points to the position of the maximum LCSS found with trajectory1.
An m x n matrix containing trajectory1. Here m is the number of points and n is the dimension of the points.
traj2
A k x n matrix containing trajectory2. Here k is the number of points and n is the dimension of the points. The two trajectories are not required to have the same number of points.
pointSpacing
An integer value of the maximum index difference between trajectory1 and trajectory2 allowed in the calculation. A negative value sets the point spacing to unlimited.
pointDistance
A floating point number representing the maximum distance in each dimension allowed for points to be considered equivalent.
errorMarg
A floating point error margin used to scale the accuracy and speed of the calculation.
Value
A vector of length n is returned containing the translation in each dimension. If a problem occurs, then a string containing information about the problem is returned.
Details
The LCSS function is called using the two trajectories along with the given variables. The optimal translation vector is then returned from this result. Please see the references for more information.
References
Vlachos, M., Kollios, G. and Gunopulos, D. (2002) Discovering similar multidimensional trajectories. Paper presented at the Data Engineering, 2002. Proceedings. 18th International Conference on.