Resample time series

Share:

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(patterns.list)
npatt = resampleTimeSeries(patt, length=46)
nrow(patt)
nrow(npatt)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.