GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <grass/interpf.h>
#include <grass/gmath.h>
Go to the source code of this file.
Functions | |
int | IL_interp_segments_2d (struct interp_params *params, struct tree_info *info, struct multtree *tree, struct BM *bitmask, double zmin, double zmax, double *zminac, double *zmaxac, double *gmin, double *gmax, double *c1min, double *c1max, double *c2min, double *c2max, double *ertot, int totsegm, off_t offset1, double dnorm) |
double | smallest_segment (struct multtree *tree, int n_leafs) |
Definition in file segmen2d.c.
int IL_interp_segments_2d | ( | struct interp_params * | params, |
struct tree_info * | info, | ||
struct multtree * | tree, | ||
struct BM * | bitmask, | ||
double | zmin, | ||
double | zmax, | ||
double * | zminac, | ||
double * | zmaxac, | ||
double * | gmin, | ||
double * | gmax, | ||
double * | c1min, | ||
double * | c1max, | ||
double * | c2min, | ||
double * | c2max, | ||
double * | ertot, | ||
int | totsegm, | ||
off_t | offset1, | ||
double | dnorm ) |
Interpolate recursively a tree of segments
Recursively processes each segment in a tree by:
info | info for the quad tree |
tree | current leaf of the quad tree |
bitmask | bitmask |
zmax | min and max input z-values |
zmaxac | min and max interp. z-values |
gmax | min and max inperp. slope val. |
c1max | min and max interp. curv. val. |
c2max | min and max interp. curv. val. |
ertot | total interplating func. error |
totsegm | total number of segments |
offset1 | offset for temp file writing |
Definition at line 46 of file segmen2d.c.
References b, interp_params::check_points, interp_params::cv, multtree::data, G_alloc_ivector(), G_alloc_matrix(), G_alloc_vector(), G_debug(), G_free(), G_lubksb(), G_percent(), G_warning(), interp_params::grid_calc, IL_interp_segments_2d(), interp_params::KMAX2, interp_params::kmin, multtree::leafs, interp_params::matrix_create, MT_region_data(), quaddata::n_cols, quaddata::n_points, quaddata::n_rows, interp_params::nsizc, interp_params::nsizr, NULL, quaddata::points, quad_data_new(), tree_info::root, smallest_segment(), interp_params::Tmp_fd_dx, interp_params::Tmp_fd_dy, interp_params::Tmp_fd_xx, interp_params::Tmp_fd_xy, interp_params::Tmp_fd_yy, interp_params::Tmp_fd_z, triple::x, interp_params::x_orig, quaddata::x_orig, quaddata::xmax, triple::y, interp_params::y_orig, quaddata::y_orig, quaddata::ymax, and triple::z.
Referenced by IL_interp_segments_2d().
double smallest_segment | ( | struct multtree * | tree, |
int | n_leafs ) |
Definition at line 338 of file segmen2d.c.
References multtree::data, multtree::leafs, NULL, smallest_segment(), and quaddata::xmax.
Referenced by IL_interp_segments_2d(), IL_interp_segments_2d_parallel(), and smallest_segment().