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 allBasic Examples (2)
Scope (5)
Test the regularity of time-value pairs:
Determine whether a TimeSeries is regularly spaced:
Determine whether an EventSeries is regularly spaced:
Properties & Relations (3)
A time series is regular if every time step is equal to the MinimumTimeIncrement:
Time series can be made regular using TimeSeriesResample:
Coerce a time series to be treated as regular using the TemporalRegularity option:
Possible Issues (2)
A time series may be regular in calendar time but irregular in absolute time:
The MinimumTimeIncrement:
The extracted path cannot be interpreted in calendar time:
TimeSeries, EventSeries, and TemporalData may be explicitly coerced to uniform spacing:
Text
Wolfram Research (2014), RegularlySampledQ, Wolfram Language function, https://reference.wolfram.com/language/ref/RegularlySampledQ.html.
CMS
Wolfram Language. 2014. "RegularlySampledQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RegularlySampledQ.html.
APA
Wolfram Language. (2014). RegularlySampledQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegularlySampledQ.html