Table of Contents

Class FlatExtrapolator2D

Namespace
NanoQL.Numerics
Assembly
NanoQL.dll

A 2-D interpolation extrapolated flat: a decorator that reads another interpolation at the point moved onto its grid's edges.

public sealed class FlatExtrapolator2D : Interpolation2D
Inheritance
FlatExtrapolator2D
Inherited Members
Extension Methods

Remarks

Its grid, its function values and its locations are the decorated interpolation's. Outside the grid, each coordinate is moved to the nearer end of its range, and the decorated interpolation is read there without extrapolation, so a NaN coordinate, which no move puts in range, is refused unless the decorated interpolation allows extrapolation. Its own range check is the base's: enable extrapolation on it, or pass allowExtrapolation, to read outside the grid.

Constructors

FlatExtrapolator2D(Interpolation2D)

Initializes a new instance of the FlatExtrapolator2D class.

public FlatExtrapolator2D(Interpolation2D decoratedInterpolation)

Parameters

decoratedInterpolation Interpolation2D

The interpolation it reads.

Exceptions

ArgumentNullException

decoratedInterpolation is null.

Methods

ValueCore(double, double)

The interpolated value at a point, after the range check.

protected override double ValueCore(double x, double y)

Parameters

x double

The x coordinate.

y double

The y coordinate.

Returns

double

The value.