TimeSeriesRescale
TimeSeriesRescale[tseries,{tmin,tmax}]
rescales the times in time series tseries to run from tmin to tmax.
TimeSeriesRescale[tseries,{tmin,tmax,tu}]
rescales times in units of tu including "Month", "Quarter", or "Year".
Details
- TimeSeriesRescale is used to expand or contract the time range for a time series while preserving the ratios of the distances between times.
- The input tseries can be a list of values {x1,x2,…}, a list of time-value pairs {{t1,x1},{t2,x2},…}, a TimeSeries, an EventSeries, or TemporalData.
- TimeSeriesRescale works on a multipath TemporalData as a whole, preserving the ratios of the distances between times across the paths.
- The values tmin<tmax can be given as numbers or valid input to AbsoluteTime.
- Time units tu can be any valid offset to DatePlus, as well as any purely numeric quantity.
- The rescaled time series have time stamps , where and refer to time stamps of tseries and where is the distance between and in units of .
- For numeric times, . For dates, is implicitly given by .
Examples
open allclose allBasic Examples (1)
Scope (9)
Basic Uses (3)
Data Types (6)
Rescale the times for a vector to run from 0 to 8:
Rescale the times for a series of time-value pairs to run from 10 to 50:
Rescale the times of a TimeSeries to run from 0 to 399:
Rescale the times of an EventSeries to run from 5 to 49:
Rescale the times of TemporalData to run from 10 to 100:
Applications (2)
Properties & Relations (1)
TimeSeriesRescale rescales the time stamps in agreement with temporal regularity assumption:
Define a copy with assumed temporal regularity:
Rescale from 1 to 12 (where 12 is the length of the path):
TimeSeriesRescale preserves the proportional distances between the time stamps:
Text
Wolfram Research (2014), TimeSeriesRescale, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeSeriesRescale.html.
CMS
Wolfram Language. 2014. "TimeSeriesRescale." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeSeriesRescale.html.
APA
Wolfram Language. (2014). TimeSeriesRescale. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeSeriesRescale.html