LinearInterpolation (FPScript)

21.09.2021

Carries out a linear interpolation of a data set.

Syntax

LinearInterpolation(DataSet, NumberOfValues)
or
LinearInterpolation(Amplitude, Time, NumberOfValues)

 

The syntax of the LinearInterpolation function consists of the following parts:

Part

Description

DataSet

The data set whose number of values is to be expanded or reduced.

All data structures are allowed, except scalar value und list. All real data types are permitted.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Amplitude

A data series or data matrix with the Y component of the data set. If you specify a signal or signal series, then the Y component is used.

Permitted data structures are data series, data matrix, signal und signal series. All real data types are permitted.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Time

A data series or data matrix with the X component of the data set. If you specify a signal or signal series, then the Y component is used.

Permitted data structures are data series, data matrix, signal und signal series. All numeric data types are permitted.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

NumberOfValues

Number of values for the result. If you specify zero, the original number of values will be maintained.

Permitted data structures are scalar value. All integral data types are permitted.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Remarks

The result has the same unit as the argument DataSet.

The data set is sampled with a constant sampling interval. The original range of X values remains intact.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

LinearInterpolation(Signal, 0)

Interpolates the signal and retains the number of values. In any case, the result is sampled equidistantly and can be Fourier transformed, for instance.

LinearInterpolation(Signal, NumberOfRows(Signal) * 2)

Interpolates the signal and doubles the number of values.

See Also

Reduce Function

Expand Function

Sample Function

Resample Function

Share article or send as email:

You might be interested in these articles