is an option for TimeSeries, EventSeries and TemporalData that controls whether the paths are assumed to be uniformly spaced in time.
TemporalRegularity
is an option for TimeSeries, EventSeries and TemporalData that controls whether the paths are assumed to be uniformly spaced in time.
Examples
open all close allBasic Examples (2)
By default, regularity is determined from the data:
t = {0, 2.5, 3, 4, 5.5};TemporalData[Range[5], {t}]//RegularlySampledQTemporalData[Range[5], {t}, TemporalRegularity -> True]//RegularlySampledQConstruct a time series for business days:
dates = DayRange[{2026, 1, 1}, {2026, 1, 10}, "BusinessDay"]
values = Range[Length[dates]]By default, TimeSeries does not detect the regularity in the list of business days:
TimeSeries[values, {dates}]//RegularlySampledQForce the time series to be regular in those dates:
TimeSeries[values, {dates}, TemporalRegularity -> True]//RegularlySampledQScope (1)
Take lists of dates and values of the same length:
dates = DayRange[{2024, 1, 1}, {2025, 12, 31}, "BusinessDay"];
values = Accumulate@RandomReal[{-1, 1}, Length[dates]];By default, TimeSeries does not check for date regularity of any special day type:
ts1 = TimeSeries[values, {dates}];RegularlySampledQ[ts1]The iterator notation {tmin,tmax,dt} allows setting regularity for nontrivial day types:
ts2 = TimeSeries[values, {{2024, 1, 1}, {2025, 12, 31}, "BusinessDay"}];RegularlySampledQ[ts2]Use the TemporalRegularity option to force regularity in a time series:
ts3 = TimeSeries[values, {dates}, TemporalRegularity -> True];RegularlySampledQ[ts3]All three time series contain the same data:
Normal[ts1] === Normal[ts2] === Normal[ts3]See Also
History
Text
Wolfram Research (2014), TemporalRegularity, Wolfram Language function, https://reference.wolfram.com/language/ref/TemporalRegularity.html.
CMS
Wolfram Language. 2014. "TemporalRegularity." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TemporalRegularity.html.
APA
Wolfram Language. (2014). TemporalRegularity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TemporalRegularity.html
BibTeX
@misc{reference.wolfram_2026_temporalregularity, author="Wolfram Research", title="{TemporalRegularity}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TemporalRegularity.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_temporalregularity, organization={Wolfram Research}, title={TemporalRegularity}, year={2014}, url={https://reference.wolfram.com/language/ref/TemporalRegularity.html}, note=[Accessed: 15-June-2026]}