STANN

Navigation

STANN‎ > ‎

User Guide

  1. Download STANN and unpack.
  2. run 'make test' to ensure proper execution on your architecture
  3. 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
  4. See documentation regarding specific algorithms
  5. 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