psi_ls_cpp: (C++) Psi Dissimilarity Score of Two Aligned Time Series

View source: R/RcppExports.R

psi_ls_cppR Documentation

(C++) Psi Dissimilarity Score of Two Aligned Time Series

Description

Computes the psi dissimilarity score between two time series observed at the same times. Time series y and x with the same number of columns and rows. NA values should be removed before using this function. If the selected distance function is "chi" or "cosine", pairs of zeros should be either removed or replaced with pseudo-zeros (i.e. 0.00001).

Usage

psi_ls_cpp(x, y, distance = "euclidean")

Arguments

x

(required, numeric matrix) of same number of columns as 'y'.

y

(required, numeric matrix) of 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".

Value

numeric

See Also

Other Rcpp_dissimilarity_analysis: psi_dtw_cpp(), psi_equation_cpp(), psi_null_dtw_cpp(), psi_null_ls_cpp()


distantia documentation built on April 4, 2025, 5:42 a.m.