RegularlySampledQ

RegularlySampledQ[tseries]

gives True if tseries is a regular time series, and False otherwise.

Details

  • A time series is regular if the sampling increment is some constant .
  • The data tseries can be a list of values {x1,x2,}, a list of time-value pairs {{t1,x1},{t2,x2},}, or TemporalData.
  • For TemporalData with multiple paths, RegularlySampledQ returns True if all paths in the ensemble are regular.
  • For tseries with date-valued time stamps, RegularlySampledQ returns True if MinimumTimeIncrement returns a date step or list of date steps.

Examples

open allclose all

Basic Examples  (2)

Check whether a time series is uniformly spaced:

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

Check that all time series in a collection are regular:

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

Resample the data to make it regular:

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

Scope  (5)

Properties & Relations  (3)

Possible Issues  (2)

See Also

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

Introduced in 2014
(10.0)