TimeSeriesMapThread

TimeSeriesMapThread[f,tseries]

gives {{t1,f[t1,x1]},{t2,f[t2,x2]},} for the time series tseries.

TimeSeriesMapThread[f,tseries,{{a1,a2,},{b1,b2,},}]

gives {{t1,f[t1,x1,a1,b1,]},{t2,f[t2,x2,a2,b2,]},} for the time series tseries.

Details

Examples

open allclose all

Basic Examples  (2)

Apply a function f to the times and values in a time series:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Create a series with increasing variance as a function of time:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Out[4]=

Add quadratic trend to the values:

In[5]:=
Click for copyable input
In[6]:=
Click for copyable input
Out[6]=

Scope  (7)

Applications  (4)

See Also

MovingMap  TimeSeriesAggregate  TimeSeriesResample  TimeSeriesThread  RegularlySampledQ  MinimumTimeIncrement  TimeSeriesShift  TimeSeriesRescale  TimeSeriesMap  TimeSeriesInsert  TimeSeriesModelFit  TimeSeriesWindow  TemporalData  TimeSeries  EventSeries

Introduced in 2014
(10.0)