Raw File
Tip revision: d51529a8ee2827cd8c1bd7c4a9e0265dd0cc72cf authored by Toni Giorgino on 19 September 2022, 16:36:11 UTC
version 1.23-1
Tip revision: d51529a
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/warpArea.R
\title{Compute Warping Path Area}
\item{d}{an object of class \code{dtw}}
The area, not normalized by path length or else.
Compute the area between the warping function and the diagonal (no-warping)
path, in unit steps.
Above- and below- diagonal unit areas all count \emph{plus} one (they do not
cancel with each other).  The "diagonal" goes from one corner to the other
of the possibly rectangular cost matrix, therefore having a slope of
\code{M/N}, not 1, as in \code{\link[=slantedBandWindow]{slantedBandWindow()}}.

The computation is approximate: points having multiple correspondences are
averaged, and points without a match are interpolated. Therefore, the area
can be fractionary.
There could be alternative definitions to the area, including
considering the envelope of the path.




  ## Result: 6
  ##  index 2 is 2 while diag is 3.3  (+1.3)
  ##        3    3               5.7  (+2.7)
  ##        4   4:8 (avg to 6)    8   (+2  )
  ##                                 --------
  ##                                     6

Toni Giorgino
back to top