- Download STANN and unpack.
- run 'make test' to ensure proper execution on your architecture
- Include the header file for the algorithm you wish to use in your program
- For k-nearest neighbor searching use sfcnn.hpp
- For k-nearest neighbor graph use sfcnn_knng.hpp
- For geometric MST use gmst.hpp
- See documentation regarding specific algorithms
- Compile the code
- Use compiler optimization (for g++ use -O3)
- If using sfcnn_knng, and want to use multiple processors, make sure to link the openmp library (for g++ use -fopenmp)
- If using the geometric minimum spanning tree, make sure to link the openmp library, and use the -D_GLIBCXX_PARALLEL flag (for g++ 4.3 or later)
Check out some example programs |