Click or drag to resize

Function2DInterp Class

Class for interpolating double values from a function in 2D, i.e. a function on the form
z = f(x,y)

This class can be used when a function in 2D space is too expensive to evaluate. Function values are precalculated on a predefined 2D grid, and when calling Interpolate(Double, Double), values are interpolated from the values on the 2D grid.

Use the Resample function to increase the resolution of the 2D grid and thereby increase the accuracy if the interpolation.

Inheritance Hierarchy
SystemObject
  DHI.ProjectionsFunction2DInterpBaseDouble
    DHI.ProjectionsFunction2DInterp

Namespace:  DHI.Projections
Assembly:  DHI.Projections (in DHI.Projections.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class Function2DInterp : Function2DInterpBase<double>

The Function2DInterp type exposes the following members.

Constructors
  NameDescription
Public methodFunction2DInterp
Initializes a new instance of the Function2DInterp class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize (Inherited from Function2DInterpBaseT.)
Public methodInterpolate
Interpolate a value at the specified 2D position
(Overrides Function2DInterpBaseTInterpolate(Double, Double).)
Public methodResample
Resample the interpolation grid, basically halfing the dx and dy in the grid by adding mid points between all current points.

If the original grid was a 3x3 grid, the new grid after resampling is 5x5, and then 9x9 and so on.

(Inherited from Function2DInterpBaseT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also