File: KDTree.h

package info (click to toggle)
python-biopython 1.68%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,860 kB
  • ctags: 13,237
  • sloc: python: 160,306; xml: 93,216; ansic: 9,118; sql: 1,208; makefile: 155; sh: 63
file content (14 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "Neighbor.h"

struct KDTree;

struct KDTree* KDTree_init(int dim, int bucket_size);
void KDTree_destroy(struct KDTree* tree);
int KDTree_set_data(struct KDTree* tree, float *coords, long int nr_points);
long int KDTree_get_count(struct KDTree* tree);
long int KDTree_neighbor_get_count(struct KDTree* tree);
int KDTree_search_center_radius(struct KDTree* tree, float *coord, float radius);
void KDTree_copy_indices(struct KDTree* tree, long *indices);
void KDTree_copy_radii(struct KDTree* tree, float *radii);
int KDTree_neighbor_search(struct KDTree* tree, float neighbor_radius, struct Neighbor** neighbors);
int KDTree_neighbor_simple_search(struct KDTree* tree, float radius, struct Neighbor** neighbors);