RegularlySampledQ

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

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 2014
(10.0)
Translate this page: