auto_distance_cpp | R Documentation |
Computes the cumulative sum of distances between consecutive samples in a univariate or multivariate time series. NA values should be removed before using this function.
auto_distance_cpp(x, distance = "euclidean")
x |
(required, numeric matrix) univariate or multivariate time series. |
distance |
(optional, character string) distance name from the "names"
column of the dataset |
numeric
Other Rcpp_auto_sum:
auto_sum_cpp()
,
auto_sum_full_cpp()
,
auto_sum_path_cpp()
,
subset_matrix_by_rows_cpp()
#simulate a time series
x <- zoo_simulate()
#compute auto distance
auto_distance_cpp(
x = x,
distance = "euclidean"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.