SparseInterpolate
- interpolate values between sparse points given as input

Miscellaneous functions
(AmiBroker 6.90)


SYNTAX SparseInterpolate( sparse_points, data, order )
RETURNS ARRAY
FUNCTION Interpolate values between sparse data points

Parameters:

  • sparse_points - non-zero values define sparse points
  • data - input data
  • order - the interpolator order/algorithm to use (1..5)
EXAMPLE sparse_points = DayOfWeek() == 1;

y = SparseInterpolate( sparse_points, Close, 2 );

Plot( IIf( sparse_points, C, Null ), "Data", colorRed, styleDots );
Plot( y, "interpolated", colorBlue, styleLine );
SEE ALSO SparseCompress() function , SparseExpand() function

References:

The SparseInterpolate function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.