Class TSfrInterpolator

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSfrInterpolator = class(TObject)

Description

Hierarchy

Overview

Fields

Private FX: TFloatArray;
Private FY: TFloatArray;
Private FZ: TFloatArray;
Private N: integer;
Private LIST: TIntArray;
Private LPTR: TIntArray;
Private LEND: TIntArray;
Private IST: longint;
Private GRAD: TFloatArray;
Private SIGMA: TFloatArray;

Methods

Public procedure Initialize(X, Y, Z: TFloatArray);
Public function Interpolate1(X, Y: TFloat): TFloat;
Public function Interpolate2(X, Y: TFloat): TFloat;
Public procedure Finalize;

Description

Fields

Private FX: TFloatArray;

FX holds the X-coordinates of the data points. FX is a copy of the value passed in Initialize.

Private FY: TFloatArray;

FY holds the Y-coordinates of the data points. FY is a copy of the value passed in Initialize.

Private FZ: TFloatArray;

FZ holds the Z-values at the data points. FZ is a copy of the value passed in Initialize.

Private N: integer;

number of points.

Private LIST: TIntArray;

LIST is a work-array with Length 6N-12.

Private LPTR: TIntArray;

// LPTR is a work-array with Length 6N-12.

Private LEND: TIntArray;

LEND is a work-array with Length N.

Private IST: longint;

IST is used as a starting point in Interpolate1 and Interpolate2.

Private GRAD: TFloatArray;

GRAD is a work-array (with Length 2N?).

Private SIGMA: TFloatArray;

SIGMA is a work-array (with Length 6N-12?). SIGMA = Uniform tension factor (IFLGS <= 0), or array containing tension factors associated with arcs in one-to-one correspondence with LIST entries (IFLGS >= 1). Refer to Sub- routines GETSIG, SIG0, SIG1, and SIG2.

Methods

Public procedure Initialize(X, Y, Z: TFloatArray);

Initialize stores the data used by Interpolate1 and Interpolate2. Each point described by X and Y must be unique; duplicates are not allowed.

Parameters
X
X holds the X-coordinates of the data points.
Y
Y holds the Y-coordinates of the data points.
Z
Z holds the data values of the data points.
Public function Interpolate1(X, Y: TFloat): TFloat;

Given a value of X, and Y, Interpolate1 returns an interpolated value at that location based on the data stored in Initialize. Linear interpolation is used. Initialize must be called before Interpolate1.

Public function Interpolate2(X, Y: TFloat): TFloat;

Given a value of X, and Y, Interpolate2 returns an interpolated value at that location based on the data stored in Initialize. Curvilinear interpolation is used. Initialize must be called before Interpolate2.

Public procedure Finalize;
 

Generated by PasDoc 0.12.1 on 2013-05-13 15:42:03