.find_min_diss | R Documentation |
Finds the shift warping that minimizes dissimilarity between multidimensional curves. The function operates on curves represented by two sets of data, each containing multiple dimensions.
.find_min_diss(
y,
v,
alpha,
w,
c_k,
d,
use0,
use1,
transform_y = FALSE,
transform_v = FALSE
)
y |
A list containing two matrices:
- |
v |
A list containing two matrices:
- |
alpha |
A numeric weight coefficient that balances the contributions of the L2 norms of the two curve sets. |
w |
A numeric vector of weights for the dissimilarity index across different dimensions. All weights must be positive (\(w > 0\)). |
c_k |
An integer specifying the minimum length of the intersection of the supports of the shifted \(y\) and \(v\). |
d |
An integer indicating the dimensionality of the curves. |
use0 |
A logical value indicating whether to use the first component of the curves (i.e., \(y0\) and \(v0\)). |
use1 |
A logical value indicating whether to use the second component of the curves (i.e., \(y1\) and \(v1\)). |
transform_y |
A logical value indicating whether to normalize \(y\) to the range \([0,1]\) before calculating the distance. |
transform_v |
A logical value indicating whether to normalize \(v\) to the range \([0,1]\) before calculating the distance. |
This function computes the shift warping between the provided multidimensional curves by examining various shifts and calculating the corresponding dissimilarity. The user can control which components of the curves to include in the calculation and whether to normalize the data.
The function returns both the optimal shift and the minimal dissimilarity, which can be used to assess the similarity between the two sets of curves under the specified constraints.
A numeric vector containing: - The optimal shift that minimizes the dissimilarity. - The minimum dissimilarity value found.
Marzia Angela Cremona & Francesca Chiaromonte
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.