DesignForms
TInterpolationMatrix Class Reference

Interpolation matrix. It is used for automatic interpolation of values in the 2D matrix Triangular interpolation is used to obtain value from existing points More...

Public Member Functions

 TInterpolationMatrix (double _Values)
 Constructor More...
 
bool TryInterpolate (double X, double Y, double ToleranceX, double ToleranceY, out object Values)
 Try to obtain value by interpolation between existing points More...
 
void AddPoint (double X, double Y, IList Values)
 Add calculated point to the matrix More...
 
void AddPoint (double X, double Y, double Value1)
 Add calculated point to the matrix More...
 
void AddPoint (double X, double Y, double Value1, double Value2)
 Add calculated point to the matrix More...
 
void AddPoint (double X, double Y, double Value1, double Value2, double Value3)
 Add calculated point to the matrix More...
 
void AddPoint (double X, double Y, double Value1, double Value2, double Value3, double Value4)
 Add calculated point to the matrix More...
 
void AddPoint (double X, double Y, double Value1, double Value2, double Value3, double Value4, double Value5)
 Add calculated point to the matrix More...
 

Detailed Description

Interpolation matrix. It is used for automatic interpolation of values in the 2D matrix Triangular interpolation is used to obtain value from existing points

Constructor & Destructor Documentation

TInterpolationMatrix ( double  _Values)

Constructor

Parameters
_ValuesNumber of values in each point of the matrix.

Member Function Documentation

void AddPoint ( double  X,
double  Y,
IList  Values 
)

Add calculated point to the matrix

Parameters
XX-coordinate of the point
YY-coordinate of the point
ValuesValues in the point
void AddPoint ( double  X,
double  Y,
double  Value1 
)

Add calculated point to the matrix

Parameters
XX-coordinate of the point
YY-coordinate of the point
Value1Calculated value
void AddPoint ( double  X,
double  Y,
double  Value1,
double  Value2 
)

Add calculated point to the matrix

Parameters
XX-coordinate of the point
YY-coordinate of the point
Value1Calculated value #1
Value2Calculated value #2
void AddPoint ( double  X,
double  Y,
double  Value1,
double  Value2,
double  Value3 
)

Add calculated point to the matrix

Parameters
XX-coordinate of the point
YY-coordinate of the point
Value1Calculated value #1
Value2Calculated value #2
Value3Calculated value #3
void AddPoint ( double  X,
double  Y,
double  Value1,
double  Value2,
double  Value3,
double  Value4 
)

Add calculated point to the matrix

Parameters
XX-coordinate of the point
YY-coordinate of the point
Value1Calculated value #1
Value2Calculated value #2
Value3Calculated value #3
Value4Calculated value #4
void AddPoint ( double  X,
double  Y,
double  Value1,
double  Value2,
double  Value3,
double  Value4,
double  Value5 
)

Add calculated point to the matrix

Parameters
XX-coordinate of the point
YY-coordinate of the point
Value1Calculated value #1
Value2Calculated value #2
Value3Calculated value #3
Value4Calculated value #4
Value5Calculated value #5
bool TryInterpolate ( double  X,
double  Y,
double  ToleranceX,
double  ToleranceY,
out object  Values 
)

Try to obtain value by interpolation between existing points

Parameters
XX-coordinate of the point
YY-coordinate of the point
ToleranceXMaximum distance of existing points in X-coordinate
ToleranceYMaximum distance of existing points in Y-coordinate
ValuesOutput parameter. Contains interpolated values, if interpolation was successful
Returns
TRUE, if the interpolation was successful, otherwise FALSE