dot-find_min_diss: Find Minimum Dissimilarity

.find_min_dissR Documentation

Find Minimum Dissimilarity

Description

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.

Usage

.find_min_diss(
  y,
  v,
  alpha,
  w,
  c_k,
  d,
  use0,
  use1,
  transform_y = FALSE,
  transform_v = FALSE
)

Arguments

y

A list containing two matrices: - y0: The first set of curve values \(y(x)\). - y1: The second set of curve values \(y'(x)\). Each matrix should have \(d\) columns corresponding to the dimensions.

v

A list containing two matrices: - v0: The first set of curve values \(v(x)\). - v1: The second set of curve values \(v'(x)\). Each matrix should have \(d\) columns corresponding to the dimensions.

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.

Details

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.

Value

A numeric vector containing: - The optimal shift that minimizes the dissimilarity. - The minimum dissimilarity value found.

Author(s)

Marzia Angela Cremona & Francesca Chiaromonte


funMoDisco documentation built on April 16, 2025, 1:10 a.m.