Functions

Functions

boolvec * points (const char *points_name="*")
 
boolvec * points_add (REAL weight=1, const char *points_name="*")
 
boolvec * points_leq (const char *points_name="*", REAL penalty_factor=0)
 
boolvec * points_geq (const char *points_name="*", REAL penalty_factor=0)
 

Detailed Description

Function Documentation

boolvec* surfit::points ( const char *  points_name = "*")
Tcl syntax:
points points_name
Description:
Using this rule the resulting surface approximates points in least squares meaning. If each cell contains no more than one point, resulting surface interpolates points.
Parameters
points_namename of points dataset
Math:
This command adds the following functional to the functional sequence:

\[ \Phi(u_{1,1},\ldots,u_{N,M}) = \sum_{p=1}^P \left( u_{i,j} - z_p \right)^2, \]

where points with coordinates $ (x_p, y_p) $ are belong to the cells (i,j)
boolvec* surfit::points_add ( REAL  weight = 1,
const char *  points_name = "*" 
)
Tcl syntax:
points_add weight points_name
Description:
This function modifies previous (modifiable) rule by adding the points rule with some weight.
Parameters
weightinformational weight for this rule
points_namename of points dataset
Math:
This command modifies previous functional $ \Phi_0 $ by adding $ \Phi_1 $:

\[ \Phi(u_{1,1},\ldots,u_{N,M}) = \Phi_0(u_{1,1},\ldots,u_{N,M}) + w\Phi_1(u_{1,1},\ldots,u_{N,M}), \]

where $ w $ - informational weight,

\[ \Phi_1(u_{1,1},\ldots,u_{N,M}) = \sum_{p=1}^P \left( u_{i,j} - z_p \right)^2, \]

where points with coordinates $ (x_p, y_p) $ are belong to the cells (i,j)
boolvec* surfit::points_geq ( const char *  points_name = "*",
REAL  penalty_factor = 0 
)
Tcl syntax:
points_geq points_name penalty_factor
Description:
This rule adds the surface condition - "the surface should be greater than equal to points".
Parameters
points_namename of points dataset
penalty_factorparameter for penalty algorithm
Math:
This command adds the condition:

\[ u_{i,j} \geq z_p, \quad p=1,\ldots,P \]

where points with coordinates $ (x_p, y_p) $ are belong to the cells (i,j)
boolvec* surfit::points_leq ( const char *  points_name = "*",
REAL  penalty_factor = 0 
)
Tcl syntax:
points_leq points_name penalty_factor
Description:
This rule adds the surface condition - "the surface should be lower than equal to points".
Parameters
points_namename of points dataset
penalty_factorparameter for penalty algorithm
Math:
This command adds the condition:

\[ u_{i,j} \leq z_p, \quad p=1,\ldots,P \]

where points with coordinates $ (x_p, y_p) $ are belong to the cells (i,j)



surfit: gridding and contouring software.