Interpolation.Resample Into Method
Resamples an interpolator at the specified x-coordinates into a pre-allocated buffer.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
public static void ResampleInto(
this IInterpolator interpolator,
ReadOnlySpan<double> x,
Span<double> y
)Parameters
- interpolator IInterpolator
- The interpolator to resample.
- x ReadOnlySpan<Double>
- A span of x-coordinates at which to evaluate the interpolator.
- y Span<Double>
- A span to store the interpolated y-values.
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 is null. |
| Dimension | The lengths of x and y do not match. |