(C++) Sum Distances Between All Consecutive Samples in Two Time Series
(C++) Sum Distances Between All Consecutive Samples in Two Time Series
Computes the cumulative auto sum of autodistances of two time series. The output value is used as normalization factor when computing dissimilarity scores.
auto_sum_full_cpp(x, y, distance ="euclidean")
Arguments
x: (required, numeric matrix) univariate or multivariate time series.
y: (required, numeric matrix) univariate or multivariate time series with the same number of columns as 'x'.
distance: (optional, character string) distance name from the "names" column of the dataset distances (see distances$name). Default: "euclidean"
Returns
numeric
Examples
#simulate two time seriesx <- zoo_simulate(seed =1)y <- zoo_simulate(seed =2)#auto sumauto_sum_full_cpp( x = x, y = y, distance ="euclidean")
See Also
Other Rcpp_auto_sum: auto_distance_cpp(), auto_sum_cpp(), auto_sum_path_cpp(), subset_matrix_by_rows_cpp()