TimeSeriesRescaleCopy to clipboard.
✖
TimeSeriesRescale
rescales the times in time series tseries to run from tmin to tmax.
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)Summary of the most common use cases
Rescale a time series to run from 1 to 100:

https://wolfram.com/xid/0mk8rt0uzvpu-ebtk1r

https://wolfram.com/xid/0mk8rt0uzvpu-dvg6ve


https://wolfram.com/xid/0mk8rt0uzvpu-kgczp

https://wolfram.com/xid/0mk8rt0uzvpu-cue4kz

Rescale to a 100-day span, starting at today's date:

https://wolfram.com/xid/0mk8rt0uzvpu-gs08h8

https://wolfram.com/xid/0mk8rt0uzvpu-dfoz0u

Scope (9)Survey of the scope of standard use cases
Basic Uses (3)
Rescale a time series to run from 0 to 20:

https://wolfram.com/xid/0mk8rt0uzvpu-cp7smw

https://wolfram.com/xid/0mk8rt0uzvpu-26a8o

Expand or contract the time range of a time series:

https://wolfram.com/xid/0mk8rt0uzvpu-c4zwil

https://wolfram.com/xid/0mk8rt0uzvpu-fybl2

https://wolfram.com/xid/0mk8rt0uzvpu-cwpiks

https://wolfram.com/xid/0mk8rt0uzvpu-gk08nq

Rescale date-valued times to be numeric:

https://wolfram.com/xid/0mk8rt0uzvpu-dsutdj


https://wolfram.com/xid/0mk8rt0uzvpu-4uh9q

Number of days between the first and last points of a time series:

https://wolfram.com/xid/0mk8rt0uzvpu-h8xqlz

Rescale date‐valued times to be integers:

https://wolfram.com/xid/0mk8rt0uzvpu-qe8uz

Data Types (6)
Rescale the times for a vector to run from 0 to 8:

https://wolfram.com/xid/0mk8rt0uzvpu-ds01ys

https://wolfram.com/xid/0mk8rt0uzvpu-bb72da

Rescale the times for a series of time-value pairs to run from 10 to 50:

https://wolfram.com/xid/0mk8rt0uzvpu-n7gkmw

https://wolfram.com/xid/0mk8rt0uzvpu-bokkqz

Rescale the times of a TimeSeries to run from 0 to 399:

https://wolfram.com/xid/0mk8rt0uzvpu-fqa9z

https://wolfram.com/xid/0mk8rt0uzvpu-edx9ky


https://wolfram.com/xid/0mk8rt0uzvpu-ggq5vw

Rescale the times of an EventSeries to run from 5 to 49:

https://wolfram.com/xid/0mk8rt0uzvpu-kpjlr2

https://wolfram.com/xid/0mk8rt0uzvpu-c852xf


https://wolfram.com/xid/0mk8rt0uzvpu-gr4xef

Rescale the times of TemporalData to run from 10 to 100:

https://wolfram.com/xid/0mk8rt0uzvpu-lp2cm


https://wolfram.com/xid/0mk8rt0uzvpu-ejvdeq


https://wolfram.com/xid/0mk8rt0uzvpu-hly99e

Rescale a time series involving quantities:

https://wolfram.com/xid/0mk8rt0uzvpu-k8zjb9

https://wolfram.com/xid/0mk8rt0uzvpu-cvt6eb

https://wolfram.com/xid/0mk8rt0uzvpu-bmoyyy

Applications (2)Sample problems that can be solved with this function
Create a series with increasing variance and rescale to calendar time:

https://wolfram.com/xid/0mk8rt0uzvpu-flfond

https://wolfram.com/xid/0mk8rt0uzvpu-f9m43w


https://wolfram.com/xid/0mk8rt0uzvpu-htsky

https://wolfram.com/xid/0mk8rt0uzvpu-dh2ajv

Rescale to begin on May 24, 1982, and step by week:

https://wolfram.com/xid/0mk8rt0uzvpu-e63enq

https://wolfram.com/xid/0mk8rt0uzvpu-bu5plc

Rescale a time series with logical time stamps to calendar times in months:

https://wolfram.com/xid/0mk8rt0uzvpu-bramw4


https://wolfram.com/xid/0mk8rt0uzvpu-hz6cn3


https://wolfram.com/xid/0mk8rt0uzvpu-bcun8q

Properties & Relations (1)Properties of the function, and connections to other functions
TimeSeriesRescale rescales the time stamps in agreement with temporal regularity assumption:

https://wolfram.com/xid/0mk8rt0uzvpu-v6df4e

https://wolfram.com/xid/0mk8rt0uzvpu-i2fj6r

Define a copy with assumed temporal regularity:

https://wolfram.com/xid/0mk8rt0uzvpu-uosfo


https://wolfram.com/xid/0mk8rt0uzvpu-ifid4f

Rescale from 1 to 12 (where 12 is the length of the path):

https://wolfram.com/xid/0mk8rt0uzvpu-bh9buy


https://wolfram.com/xid/0mk8rt0uzvpu-i5rj9w

TimeSeriesRescale preserves the proportional distances between the time stamps:

https://wolfram.com/xid/0mk8rt0uzvpu-k8z4fa


https://wolfram.com/xid/0mk8rt0uzvpu-4u7qd7

Wolfram Research (2014), TimeSeriesRescale, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeSeriesRescale.html.
Text
Wolfram Research (2014), TimeSeriesRescale, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeSeriesRescale.html.
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.
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
Wolfram Language. (2014). TimeSeriesRescale. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeSeriesRescale.html
BibTeX
@misc{reference.wolfram_2025_timeseriesrescale, author="Wolfram Research", title="{TimeSeriesRescale}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TimeSeriesRescale.html}", note=[Accessed: 15-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_timeseriesrescale, organization={Wolfram Research}, title={TimeSeriesRescale}, year={2014}, url={https://reference.wolfram.com/language/ref/TimeSeriesRescale.html}, note=[Accessed: 15-March-2025
]}