ResamplingMethod

ResamplingMethod

is an option for functions such as TemporalData and MovingMap that specifies how values in between given times should be computed.

Details

  • Typical settings include:
  • Automaticpick the resampling method automatically
    Noneuse Missing[]
    {"Constant",c}use the value c
    {"Interpolation",opt1->val1,}interpolate with particular options

Examples

open allclose all

Basic Examples  (1)

Treat values in between given times as Missing:

Use a constant value c:

Use first-order interpolation:

Scope  (1)

ResamplingMethod specifies how to upsample a TimeSeries:

Resample with a step of 1/2 with interpolation of order 1:

Use interpolation of order 2:

Compare the plots:

Use no interpolation:

Properties & Relations  (2)

For EventSeries, the default ResamplingMethod is None:

For TimeSeries, the default ResamplingMethod is an interpolation with order 1:

The results are the same:

Resampling method can be changed either by creating a new time series or by an option to TimeSeriesResample:

The results are the same:

Compare the time series:

Possible Issues  (1)

If the resampling method specification is not an implemented one, it will assume the value Automatic:

For TimeSeries:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_resamplingmethod, author="Wolfram Research", title="{ResamplingMethod}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ResamplingMethod.html}", note=[Accessed: 21-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_resamplingmethod, organization={Wolfram Research}, title={ResamplingMethod}, year={2014}, url={https://reference.wolfram.com/language/ref/ResamplingMethod.html}, note=[Accessed: 21-October-2021 ]}

CMS

Wolfram Language. 2014. "ResamplingMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ResamplingMethod.html.

APA

Wolfram Language. (2014). ResamplingMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ResamplingMethod.html