|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
#include <stdio.h>#include <math.h>#include <unistd.h>#include <grass/gis.h>#include <grass/vector.h>#include <grass/dbmi.h>#include <grass/interpf.h>
Go to the source code of this file.
Macros | |
| #define | POINT2D_C |
Functions | |
| int | IL_check_at_points_2d (struct interp_params *params, struct quaddata *data, double *b, double *ertot, double zmin, double dnorm, struct triple *skip_point) |
| int | IL_write_point_2d (struct triple point, double err) |
| A function to write out point and deviation at point to database. | |
Definition in file point2d.c.
| int IL_check_at_points_2d | ( | struct interp_params * | params, |
| struct quaddata * | data, | ||
| double * | b, | ||
| double * | ertot, | ||
| double | zmin, | ||
| double | dnorm, | ||
| struct triple * | skip_point | ||
| ) |
Checks if interpolating function interp() evaluates correct z-values at given points. If smoothing is used calculate the maximum error caused by smoothing.
ertot is a RMS deviation of the interpolated surface.
| data | current region |
| b | solution of linear equations |
| ertot | total error |
| zmin | min z-value |
Definition at line 52 of file point2d.c.
References b, interp_params::create_devi, interp_params::cv, err(), interp_params::fi, IL_write_point_2d(), interp_params::interp, quaddata::n_points, quaddata::points, r, triple::x, quaddata::x_orig, interp_params::x_orig, quaddata::xmax, triple::y, quaddata::y_orig, interp_params::y_orig, quaddata::ymax, and triple::z.
A function to write out point and deviation at point to database.
| point | point to write out |
| error | deviation at point |
Definition at line 163 of file point2d.c.
References Cats2, count, db_append_string(), db_close_database(), db_execute_immediate(), db_get_string(), DB_OK, db_shutdown_driver(), db_zero_string(), driver2, err(), ff, G_debug(), G_fatal_error(), GV_POINT, Map2, Pnts, sql2, Vect_append_point(), Vect_cat_set(), Vect_reset_cats(), Vect_reset_line(), Vect_write_line(), triple::x, triple::y, and triple::z.
Referenced by IL_check_at_points_2d(), and IL_check_at_points_2d_cvdev().