Description

Returns the indexing required to apply the optimal warping curve to a
given timeseries (warps either into a query or into a reference).

Usage

1

Arguments

d

dtw object specifying the warping curve to apply

index.reference

TRUE to warp a reference, FALSE
to warp a query

Details

The warping is returned as a set of indices, which can be used to
subscript the timeseries to be warped (or rows in a matrix, if one
wants to warp a multivariate time series). In other words,
warp converts the warping curve, or its inverse, into a
function in the explicit form.

Multiple indices that would be mapped to a single point are averaged,
with a warning. Gaps in the index sequence are filled by linear
interpolation.

Value

A list of indices to subscript the timeseries.

Author(s)

Toni Giorgino

See Also

Examples in dtw show how to graphically
apply the warping via parametric plots.