bufferkdtree (C sources)
C source code for the Python bufferkdtree implementation
 All Classes Files Functions Variables Typedefs Macros
global.h
Go to the documentation of this file.
1 /*
2  * global.h
3  *
4  * Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
5  * License: GPL v2
6  *
7  */
8 
9 #ifndef NEIGHBORS_KDTREE_INCLUDE_GLOBAL_H_
10 #define NEIGHBORS_KDTREE_INCLUDE_GLOBAL_H_
11 
12 #include "../../../include/float.h"
13 
14 #define SPLITTING_TYPE_CYCLIC 0
15 #define SPLITTING_TYPE_LONGEST_BOX 1
16 
17 // struct for input parameters
18 typedef struct kd_tree_parameters {
19 
25 
27 
28 // struct for storing a single node
29 typedef struct kdtree_node {
30 
31  int axis;
33 
34 } KD_TREE_NODE;
35 
36 // struct for storing tree
37 typedef struct kdtree_record {
38 
40  int nXtrain;
41  int dXtrain;
42 
43  void *XI;
45  int *leaves;
47 
49 
50 
51 
52 
53 #endif /* NEIGHBORS_KDTREE_INCLUDE_GLOBAL_H_ */
Definition: global.h:29
int * leaves
Definition: global.h:45
int num_threads
Definition: global.h:22
int splitting_type
Definition: global.h:24
#define FLOAT_TYPE
Definition: global.h:34
FLOAT_TYPE * Xtrain
Definition: global.h:39
Definition: global.h:37
FLOAT_TYPE splitting_value
Definition: global.h:32
int nXtrain
Definition: global.h:40
struct kdtree_node KD_TREE_NODE
struct kd_tree_parameters KD_TREE_PARAMETERS
void * XI
Definition: global.h:43
int n_neighbors
Definition: global.h:20
int verbosity_level
Definition: global.h:23
Definition: global.h:18
int axis
Definition: global.h:31
int tree_depth
Definition: global.h:21
KD_TREE_NODE * nodes
Definition: global.h:44
int dXtrain
Definition: global.h:41
struct kdtree_record KD_TREE_RECORD
int tree_depth
Definition: global.h:46