(C++) Sum Distances Between All Consecutive Samples in Two Time Series
Source:R/RcppExports.R
auto_sum_full_cpp.Rd
Computes the cumulative auto sum of autodistances of two time series. The output value is used as normalization factor when computing dissimilarity scores.
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
(seedistances$name
). Default: "euclidean"
See also
Other Rcpp_auto_sum:
auto_distance_cpp()
,
auto_sum_cpp()
,
auto_sum_path_cpp()
,
subset_matrix_by_rows_cpp()
Examples
#simulate two time series
x <- zoo_simulate(seed = 1)
y <- zoo_simulate(seed = 2)
#auto sum
auto_sum_full_cpp(
x = x,
y = y,
distance = "euclidean"
)
#> [1] 17.12273