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:

Introduced in 2014
 (10.0)