kdnode Struct Reference

Node definition. There exists two types of nodes: internal nodes partition the space by a cut plane defined by a value in one of the k dimensions; external nodes (aka buckets) store the points in the resulting hyperplanes of the partition. The variable bucket is 1 if the node is a bucket and zero if it is an internal node.
In an internal node, cutdim gives the dimension being partitioned, cutval is a value in that dimension, and loson and hison are pointers to its two subtrees (containing respectively, points not greather than and not less than cutval in that dimension).
In a bucket, the points that are contained in it are represented by indexes that are in the range perm[lopt,hipt]. The global variable perm is called as permutation vector. The number of points is represented by the expression hipt - lopt + 1. More...

#include <tdkdtree.h>

Collaboration diagram for kdnode:
Collaboration graph
[legend]

Data Fields

int bucket
int cutdim
double cutval
struct kdnodeloson
struct kdnodehison
int lopt
int hipt

Detailed Description

Node definition. There exists two types of nodes: internal nodes partition the space by a cut plane defined by a value in one of the k dimensions; external nodes (aka buckets) store the points in the resulting hyperplanes of the partition. The variable bucket is 1 if the node is a bucket and zero if it is an internal node.
In an internal node, cutdim gives the dimension being partitioned, cutval is a value in that dimension, and loson and hison are pointers to its two subtrees (containing respectively, points not greather than and not less than cutval in that dimension).
In a bucket, the points that are contained in it are represented by indexes that are in the range perm[lopt,hipt]. The global variable perm is called as permutation vector. The number of points is represented by the expression hipt - lopt + 1.

Definition at line 41 of file tdkdtree.h.


Field Documentation

int bucket

Definition at line 43 of file tdkdtree.h.

int cutdim

Definition at line 44 of file tdkdtree.h.

double cutval

Definition at line 45 of file tdkdtree.h.

int hipt

Definition at line 49 of file tdkdtree.h.

struct kdnode* hison

Definition at line 47 of file tdkdtree.h.

int lopt

Definition at line 48 of file tdkdtree.h.

struct kdnode* loson

Definition at line 46 of file tdkdtree.h.


The documentation for this struct was generated from the following file:
Generated on Tue Nov 16 18:24:44 2010 by  doxygen 1.6.3