MeshInterpolate
in package
Utility class to interpolate a given data matrix
Table of Contents
Methods
- IntSquare() : mixed
- Calculate the mid points of the given rectangle which has its top left corner at $row,$col. The $aFactordecides how many spliots should be done.
- Linear() : the
- Interpolate values in a matrice so that the total number of data points in vert and horizontal axis are $aIntNbr more. For example $aIntNbr=2 will make the data matrice have tiwce as many vertical and horizontal dta points.
Methods
IntSquare()
Calculate the mid points of the given rectangle which has its top left corner at $row,$col. The $aFactordecides how many spliots should be done.
public
IntSquare(mixed $aRow, mixed $aCol, mixed $aFactor) : mixed
i.e. how many more divisions should be done recursively
Parameters
- $aRow : mixed
- $aCol : mixed
- $aFactor : mixed
Linear()
Interpolate values in a matrice so that the total number of data points in vert and horizontal axis are $aIntNbr more. For example $aIntNbr=2 will make the data matrice have tiwce as many vertical and horizontal dta points.
public
Linear(mixed &$aData, mixed $aIntFactor) : the
Note: This will blow up the matrcide in memory size in the order of $aInNbr^2
Parameters
- $aData : mixed
- $aIntFactor : mixed
Return values
the —interpolated matrice