.diss_d0_d1_L2 | R Documentation |
Computes a Sobolev-type dissimilarity index for multidimensional curves based on a weighted combination of L2 norms of the function and its derivative. The distance is normalized on a common support, allowing for a comparison between curves considering both their levels and variations.
.diss_d0_d1_L2(y, v, w, alpha, transform_y = FALSE, transform_v = FALSE)
y |
A list of two matrices:
Each matrix should have |
v |
A list of two matrices:
Each matrix should have |
w |
A numeric vector of weights for the dissimilarity index in different dimensions. Each weight should be greater than 0. |
alpha |
A numeric value (between 0 and 1) that specifies the weight coefficient between the L2 norm of the function (d0.L2) and the L2 norm of the derivative (d1.L2):
|
transform_y |
A logical value indicating whether to normalize |
transform_v |
A logical value indicating whether to normalize |
The dissimilarity index is calculated based on the following Sobolev-type distance:
D = (1 - \alpha) \cdot d0.L2 + \alpha \cdot d1.L2
where:
d0.L2
: L2 distance considering only the levels of the curves.
d1.L2
: L2 distance considering only the derivatives of the curves.
The function normalizes the inputs based on the specified flags to ensure that all features are comparable.
A numeric value representing the dissimilarity index between the curves defined by y
and v
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.