GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
point2d.c File Reference
#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>
Include dependency graph for point2d.c:

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)
 

Detailed Description

Author
Lubos Mitas (original program and various modifications)
H. Mitasova, I. Kosinovsky, D. Gerdes, D. McCauley (GRASS4.1 version of the program and GRASS4.2 modifications)
modified by McCauley in August 1995
modified by Mitasova in August 1995, Nov. 1996

Definition in file point2d.c.

Macro Definition Documentation

#define POINT2D_C

Definition at line 34 of file point2d.c.

Function Documentation

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.

Todo:
Alternative description: ...calculate the maximum and RMS deviation caused by smoothing.
Parameters
datacurrent region
bsolution of linear equations
ertottotal error
zminmin z-value

Definition at line 53 of file point2d.c.

References cat, Cats2, count, interp_params::cv, db_append_string(), db_close_database(), db_execute_immediate(), db_get_string(), DB_OK, db_shutdown_driver(), db_zero_string(), driver2, err(), interp_params::fddevi, ff, interp_params::fi, G_debug(), G_fatal_error(), GV_POINT, interp_params::interp, Map2, quaddata::n_points, NULL, Pnts, quaddata::points, r, sql2, field_info::table, Vect_append_point(), Vect_cat_set(), Vect_reset_cats(), Vect_reset_line(), Vect_write_line(), 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.