# 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:

Check that all time series in a collection are regular:

Resample the data to make it regular:

## Scope(5)

A vector is always regular:

Test the regularity of time-value pairs:

Determine whether a TimeSeries is regularly spaced:

Determine whether an EventSeries is regularly spaced:

Test an ensemble of paths for regularity:

## Properties & Relations(3)

A time series is regular if every time step is equal to the MinimumTimeIncrement:

An irregular series:

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 extracted path cannot be interpreted in calendar time:

TimeSeries, EventSeries, and TemporalData may be explicitly coerced to uniform spacing:

Wolfram Research (2014), RegularlySampledQ, Wolfram Language function, https://reference.wolfram.com/language/ref/RegularlySampledQ.html.

#### 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

#### BibTeX

@misc{reference.wolfram_2024_regularlysampledq, author="Wolfram Research", title="{RegularlySampledQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RegularlySampledQ.html}", note=[Accessed: 29-May-2024 ]}

#### BibLaTeX

@online{reference.wolfram_2024_regularlysampledq, organization={Wolfram Research}, title={RegularlySampledQ}, year={2014}, url={https://reference.wolfram.com/language/ref/RegularlySampledQ.html}, note=[Accessed: 29-May-2024 ]}