TSCompute_LP_Dist function

The TSCompute_LP_Dist function uses the Lp-norm function to calculate how close the two time series sequences match.

Syntax

TSCompute_LP_Dist (
                 sequence1     list,
                 sequence2     list,                      
                 p_value       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.
p_value
The p value as defined in the Lp-norm function. Must be greater than 0.

Usage

Run the TSCompute_LP_Dist function to calculate the distance between two time series sequences with the Lp-norm formula. The length of the sequences must be the same. See Lp-norm.

Returns

A number that represents the difference between two sequences.