You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Polynoms Class > Polynoms Methods > Interpolate Method > Polynoms.Interpolate Method (TVec, TVec, TVec, TVec, TInterpolationType, bool)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Polynoms.Interpolate Method (TVec, TVec, TVec, TVec, TInterpolationType, bool)

Perform linear or cubic interpolation.

Syntax
C#
Visual Basic
public static void Interpolate(TVec X, TVec Y, TVec intX, TVec IntY, TInterpolationType IntType, bool IntXSorted);

The routine interpolates IntY at IntX to the underlying function values, stored in Y. X.Length and Y.length properties must match or an exception will be raised. The IntType parameter defines the type of interpolation (linear, cubic). The intXSorted parameter defines whether intX values are sorted. If intX values are sorted the interpolation is much faster. 

Vector X stores the positions, where the function is evaluated. X values must be monotonic. The Length and Complex properties of the IntY vector are adjusted automatically.  

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!