Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
scrollbar

Transformation - InterpolationSerial Linear

Input
  • inputVariable
Options
  • maxGapLength
Output
  • outputVariable
Description

This transformation will fill the gaps in the time series with linear interpolation. If the gap is larger than maxGapLength than the gap will not be filled.

Configuration example

schema:

transformationModule.xsd

keywords:

transformation, interpolation

Description and usage

This transformation function is used to fill inner gaps in a time series. The inner gaps are filled with linearly interpolated data values.

A gap is defined as a number of consecutive values that are unreliable or missing. An inner gap is defined as a gap for which there is at least one reliable or doubtful value before the gap and at least one reliable or doubtful value after the gap. This function fills only inner gaps.

Each inner gap is filled using linear interpolation between the value just before the gap and the value just after the gap.

This function has an option to define the maximum length of the gaps that should be filled. Gaps that are equal to or smaller than the defined maximum gap length will be filled with interpolated values. Gaps that are larger than the defined maximum gap length will not be filled.

Input/Output time series

In this function one input time series and one output time series must be identified.

  • inputVariable: A time series with input values. This will typically contain inner gaps.
  • outputVariable: A time series in which the output will be stored. The output series will contain all input values and the inner gaps will be filled.
Configuration

A basic configuration of the function is described below. This describes the main elements and attributes required and provides an example configuration.

inputVariable
Required element defining the identifier of the input time series with input values. This Id must reference a valid input time series.

outputVariable
Required element defining the identifier of the output time series with output values. This Id must reference a valid output time series.

maxGapLength
Optional element defining the maximum length of gaps that should be filled. The length is equal to the number of time steps. Gaps equal to or smaller than maxGapLength will be filled with interpolated values. Gaps larger than maxGapLength will not be filled. If maxGapLength is not defined, then all gaps will be filled with interpolated values.

Example

Code Block
xml
xml

<transformation id="interpolation serial linear">
	<interpolationSerial>
		<linear>
			<inputVariable>
				<variableId>input</variableId>
			</inputVariable>
			<maxGapLength>5</maxGapLength>
			<outputVariable>
				<variableId>output</variableId>
			</outputVariable>
		</linear>
</transformation>
Advanced configuration topics

Additional advanced options are available and are briefly described. See schema for information on how to configure advanced options.

className
Optional element to define a Java class to override the default class used for the transformation. If used this class must be available and implement the required transformation interface. See Transformations - user defined classes for details.

Common issues

None reported.

Related items

TransformationModule.xsd
Transformations - introductionImage Removed