Class TNaturalCubicSpline

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TNaturalCubicSpline = class(TObject)

Description

Natural cubic spline (1D). May be periodic or not.

Hierarchy

  • TObject
  • TNaturalCubicSpline

Overview

Methods

Public constructor Create(X, Y: TFloatList; AOwnsX, AOwnsY, APeriodic: boolean);
Public destructor Destroy; override;
Public function Evaluate(x: Float): Float;

Properties

Public property MinX: Float read FMinX;
Public property MaxX: Float read FMaxX;
Public property Periodic: boolean read FPeriodic;

Description

Methods

Public constructor Create(X, Y: TFloatList; AOwnsX, AOwnsY, APeriodic: boolean);

Constructs natural cubic spline such that for every i in [0; X.Count-1] s(X[i]) = Y[i]. Must be X.Count = Y.Count. X must be already sorted. MinX = X[0], MaxX = X[X.Count-1].

Warning: we will copy references to X and Y ! So make sure that these objects are available for the life of this object. We will free in destructor X if OwnsX and free Y if OwnsY.

Public destructor Destroy; override;
 
Public function Evaluate(x: Float): Float;

Evaluate value of natural cubic spline at x. Must be MinX <= x <= MaxX.

Properties

Public property MinX: Float read FMinX;
 
Public property MaxX: Float read FMaxX;
 
Public property Periodic: boolean read FPeriodic;
 

Generated by PasDoc 0.14.0.