resampleTimeSeries: Resample time series

Description Usage Arguments Value Author(s) See Also Examples

Description

resample time series in the same object to have the same the length.

Usage

1
2
3
4
resampleTimeSeries(object, length = NULL)

## S4 method for signature 'twdtwTimeSeries'
resampleTimeSeries(object, length = NULL)

Arguments

object

an object of class twdtwTimeSeries.

length

An integer. The number of samples to resample the time series. If not declared the length is set to the length of the longest time series.

Value

An object of class twdtwTimeSeries whose time series have the same number of samples (points).

Author(s)

Victor Maus, vwmaus1@gmail.com

See Also

twdtwTimeSeries-class, and twdtwApply

Examples

1
2
3
4
5
# Resampling time series from objects of class twdtwTimeSeries
patt = twdtwTimeSeries(MOD13Q1.patterns.list)
npatt = resampleTimeSeries(patt, length=46)
nrow(patt)
nrow(npatt)

dtwSat documentation built on May 29, 2017, 9:22 p.m.