Interpolation.Resample Method
Resamples an interpolator at the specified x-coordinates.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
An array of interpolated y-values corresponding to each x-coordinate in x.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
public static double[] Resample(
this IInterpolator interpolator,
double[] x
)Parameters
- interpolator IInterpolator
- The interpolator to resample.
- x Double[]
- An array of x-coordinates at which to evaluate the interpolator.
Return Value
Double[]An array of interpolated y-values corresponding to each x-coordinate in x.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IInterpolator. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
| Argument | interpolator or x is null. |