Usage
twdtw(query, template, weight = NULL, dist.method = "Euclidean", theta = NULL, alpha = NULL, beta = NULL, n.alignments = NULL, span = NULL, step.matrix = symmetric1, keep = FALSE, query.name = NULL)
Arguments
query
A zoo object with a query time series. template
A zoo object with a template time series similar
to query
. The template
must have the same number of attributes
and be equal to or longer than the query
,
i.e. nrow(query)<=nrow(template)< code="">.=nrow(template)<>
weight
A character. ''linear'' for linear weight or ''logistic''
for logistic weight. Default is NULL that runs the original dtw method,
i.e. without time weight.
dist.method
A character. Method to derive the local cost matrix.
Default is ''Euclidean'' See dist
in package
proxy. theta
A number. Parameter for ''linear'' time weight. For theta=1
the time weight is equal to the number of elapsed days.
alpha
A number. The steepness of logistic weight.
beta
A number. The midpoint of logistic weight.
n.alignments
An integer. The maximun number of alignments to
perform. NULL will return all possible alignments.
span
Span between two points of minimum in days, i.e. the minimum
interval between two alignments, for details see [1]
keep
preserves the cost matrix, inputs, and other internal structures.
Default is FALSE
query.name
A query identification.