GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72272
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kdtree Struct Reference

k-d tree More...

#include <kdtree.h>

Collaboration diagram for kdtree:

Data Fields

unsigned char ndims
 
unsigned char * nextdim
 
int csize
 
int btol
 
size_t count
 
struct kdnoderoot
 

Detailed Description

k-d tree

Definition at line 80 of file kdtree.h.

Field Documentation

int kdtree::btol

balancing tolerance

Definition at line 85 of file kdtree.h.

Referenced by kdtree_create().

size_t kdtree::count

number of items in the tree

Definition at line 86 of file kdtree.h.

Referenced by kdtree_create(), kdtree_insert(), and kdtree_optimize().

int kdtree::csize

size of coordinates in bytes

Definition at line 84 of file kdtree.h.

Referenced by kdtree_create(), and kdtree_insert().

unsigned char kdtree::ndims

number of dimensions

Definition at line 82 of file kdtree.h.

Referenced by kdtree_create(), kdtree_dnn(), kdtree_knn(), and kdtree_rnn().

unsigned char* kdtree::nextdim

split dimension of child nodes

Definition at line 83 of file kdtree.h.

Referenced by kdtree_create(), and kdtree_destroy().

struct kdnode* kdtree::root

The documentation for this struct was generated from the following file: