From 35c77a3e8d506f6348b97ae965c3c124c05413cf Mon Sep 17 00:00:00 2001 From: David Date: Thu, 15 Dec 2016 11:12:42 -0600 Subject: [PATCH] updated netmets to work with the new cylinder class --- FindANN.cmake | 44 -------------------------------------------- FindGLUT.cmake | 4 ---- main.cu | 4 ++-- 3 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 FindANN.cmake diff --git a/FindANN.cmake b/FindANN.cmake deleted file mode 100644 index 0fa89ae..0000000 --- a/FindANN.cmake +++ /dev/null @@ -1,44 +0,0 @@ -# - Try to find ANN -# Once done this will define -# -# ANN_FOUND - system has ANN -# ANN_INCLUDE_DIR - the ANN include directory -# ANN_LIBRARY - Link these to use ANN -# - -IF (ANN_INCLUDE_DIRS) - # Already in cache, be silent - SET(ANN_FIND_QUIETLY TRUE) -ENDIF (ANN_INCLUDE_DIRS) - -FIND_PATH( ANN_INCLUDE_DIR ANN/ANN.h - PATHS "/usr/include" "C:/libs/ANN/include") - -if( WIN32 ) - - set(ANN_LIBRARY $ENV{ANN_PATH}\\ANN.lib) - set(ANN_INCLUDE_DIR $ENV{ANN_PATH}) - - - - - # Store the library dir. May be used for linking to dll! - # GET_FILENAME_COMPONENT( ANN_LIBRARY_DIR ${ANN_LIBRARY} PATH ) - - find_package_handle_standard_args(ANN DEFAULT_MSG ANN_INCLUDE_DIR) - -else (WIN32) - - FIND_LIBRARY( ANN_LIBRARY - NAMES ann ANN - PATHS /lib /usr/lib /usr/lib64 /usr/local/lib ) - -endif( WIN32) - - -IF (ANN_INCLUDE_DIR AND ANN_LIBRARY) - SET(ANN_FOUND TRUE) -ELSE (ANN_INCLUDE_DIR AND ANN_LIBRARY) - SET( ANN_FOUND FALSE ) -ENDIF (ANN_INCLUDE_DIR AND ANN_LIBRARY) - diff --git a/FindGLUT.cmake b/FindGLUT.cmake index 747c492..25b2cbb 100644 --- a/FindGLUT.cmake +++ b/FindGLUT.cmake @@ -55,16 +55,12 @@ if (WIN32) NO_DEFAULT_PATH ) - message("GLUT 64-bit detected:") - message(${GLUT_glut_LIBRARY}) else( CMAKE_SIZEOF_VOID_P EQUAL 8 ) find_library( GLUT_glut_LIBRARY NAMES glut glut32 freeglut PATHS ${OPENGL_LIBRARY_DIR} $ENV{GLUT_ROOT_PATH}/lib ) - message("GLUT 32-bit detected") - endif( CMAKE_SIZEOF_VOID_P EQUAL 8 ) else () diff --git a/main.cu b/main.cu index a3a7e87..2877e5c 100644 --- a/main.cu +++ b/main.cu @@ -222,8 +222,8 @@ void compare(float sigma, int device){ T = T.compare(GT, sigma, device); //compare the test case to the ground truth - store errors in T //calculate the metrics - float FPR = GT.average(1); //calculate the metrics - float FNR = T.average(1); + float FPR = GT.average(0); //calculate the metrics + float FNR = T.average(0); std::cout << "FNR: " << FPR << std::endl; //print false alarms and misses std::cout << "FPR: " << FNR << std::endl; -- libgit2 0.21.4