Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
asardaes committed Jul 7, 2024
1 parent b16581d commit 2189a6d
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Version 6.0.0
* Update Makevars for ARM version of Windows.
* Sanitize internal usage of `do.call` to avoid huge backtraces.
* Support lower triangular `distmat` objects for symmetric distances (#77).
* Support lower triangular `distmat` objects for symmetric distances (#77) - breaking change.

## Version 5.5.12
* Remove explicit C++ requirements.
Expand Down
6 changes: 6 additions & 0 deletions R/DISTANCES-sdtw.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
#'
#' `r roxygen_proxy_symmetric()`
#'
#' Note that, due to the fact that this distance is not always zero when a series is compared
#' against itself, this optimization is likely problematic for soft-DTW, as the `dist` object will
#' be handled by many functions as if it had only zeroes in the diagonal. An exception is
#' [tsclust()] when using partitional clustering with PAM centroids---actual diagonal values will
#' be calculated and considered internally in that case.
#'
#' @references
#'
#' Cuturi, M., & Blondel, M. (2017). Soft-DTW: a Differentiable Loss Function for Time-Series. arXiv
Expand Down
3 changes: 3 additions & 0 deletions R/RD-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ See the parallelization vignette for more information - `browseVignettes(\"dtwcl

roxygen_proxy_symmetric <- function() {
"It also includes symmetric optimizations to calculate only half a distance matrix when appropriate---only one list of series should be provided in `x`.
Starting with version 6.0.0, this optimization means that the function returns an array with the lower triangular values of the distance matrix,
similar to what [stats::dist()] does;
see [DistmatLowerTriangular-class] for a helper to access elements as it if were a normal matrix.
If you want to avoid this optimization, call [proxy::dist] by giving the same list of series in both `x` and `y`."
}

Expand Down
2 changes: 1 addition & 1 deletion inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
\itemize{
\item Update Makevars for ARM version of Windows.
\item Sanitize internal usage of \code{do.call} to avoid huge backtraces.
\item Support lower triangular \code{distmat} objects for symmetric distances. See PR #77 on GitHub.
\item Support lower triangular \code{distmat} objects for symmetric distances. This is a slightly breaking change, see PR #77 on GitHub.
}
}
3 changes: 3 additions & 0 deletions man/GAK.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/SBD.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/dtw_basic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions man/sdtw.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2189a6d

Please sign in to comment.