MissingDataMethod

MissingDataMethod

is an option to TemporalData and other functions that controls how to process missing data.

Details

  • A missing data method typically provides methods for how to fill in values that are missing.
  • Typical settings include:
  • Nonedo no processing
    Automaticpick a method automatically
    "name"use a specified method
    {"name",opt1->val1,}use a specified method with particular options
  • The missing data methods for individual functions are documented on the corresponding reference pages.

Examples

open allclose all

Basic Examples  (1)

Fill in missing data values using linear interpolation:

Use TemporalData to create a complete path:

Scope  (2)

Fill missing values with a constant:

Fill missing values by keeping the value from the left:

Properties & Relations  (2)

The default method for EventSeries is interpolation of order 0:

The default method for TimeSeries is interpolation of order 1:

Possible Issues  (1)

The choice of MissingDataMethod will produce varying results:

Do not specify missing values:

Accumulate:

Fill missing values with a constant:

Use interpolation to fill in missing values:

Compare the results:

Introduced in 2012
 (9.0)