TSCompute_LCSS_Dist and TSCompute_Normalized_LCSS_Dist functions
The TSCompute_LCSS_Dist and TSCompute_Normalized_LCSS_Dist functions calculate the longest common subsequence distance between two time series sequences.
Syntax
TSCompute_LCSS_Dist (
sequence1 list,
sequence2 list,
normalize_delta DOUBLE PRECISION,
epsilon DOUBLE PRECISION)
RETURNS DOUBLE PRECISION
TSCompute_Normalized_LCSS_Dist (
sequence1 list,
sequence2 list,
normalize_delta DOUBLE PRECISION,
epsilon DOUBLE PRECISION)
RETURNS DOUBLE PRECISION
- sequence1
- A list of values that is returned by the ValueAsCollection or TSGetValueList function.
- sequence2
- A list of values that is returned by the ValueAsCollection or TSGetValueList function.
- normalized_delta
- The limit of the delta distance.
- epsilon
- The value of ϵ in the longest common subsequence formula.
Usage
Run the TSCompute_LCSS_Dist or TSCompute_Normalized_LCSS_Dist function to use the longest common subsequence algorithm to calculate the distance between two time series sequences. The TSCompute_LCSS_Dist function returns the actual distance. The TSCompute_Normalized_LCSS_Dist function returns the distance as a value 0.0 - 1.0. See Longest common subsequence.
Returns
A number that represents the difference between two sequences.