https://github.com/cran/dtw
Raw File
Tip revision: 532d2199f056d70ec695498b26d577e901bc7734 authored by Toni Giorgino on 01 September 2019, 05:50:02 UTC
version 1.21-3
Tip revision: 532d219
countPaths.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/countPaths.R
\name{countPaths}
\alias{countPaths}
\title{Count the number of warping paths consistent with the constraints.}
\usage{
countPaths(d, debug = FALSE)
}
\arguments{
\item{d}{an object of class \code{dtw}}

\item{debug}{return an intermediate result}
}
\value{
The number of paths.
}
\description{
Count how many possible warping paths exist in the alignment problem passed
as an argument. The object passed as an argument is used to look up the
problem parameters such as the used step pattern, windowing, open ends, and
so on. The actual alignment is ignored.
}
\details{
Note that the number of paths grows exponentially with problems size. The
result may be approximate when windowing functions are used.

If \code{debug=TRUE}, a matrix used for the computation is
returned instead of the final result.
}
\examples{

  ds<-dtw(1:7+2,1:8,keep=TRUE,step=asymmetric);
  countPaths(ds)
  ## Result: 126

}
\author{
Toni Giorgino
}
\keyword{ts}
back to top