Period Constants
The Period Constants function applies values in the primary time
series data set to the times defined by a second time series data
set. Both time series data sets may be regular or irregular interval. Values
in the new time series are set according to:
ts1(j) ≤ tsnew(i) < ts1(j+1) , TSNEW(i) = TS1(j)
where ts1 is the time in the primary time series, TS1 is the value in the primary time series, tsnew is the time in the new time series, TSNEW is the value in the new time series.
If times in the new time series precede the first data point in the primary time series, the value for these times is set to missing. If times in the new time series occur after the last data point in the primary time series, the value for these times is set to the value of the last point in the primary time series. Interpolation of values with the Period Constants function is shown in the figure below.
Interpolation of time series values using Period Constants function
To generate a new time series of period constants: