sonar_utils.cpp

00001 #include "sonar_utils.h"
00002 
00003 namespace SeaBee3_Sonar {
00004 
00005 double sign(double val) {
00006   if (val < 0)
00007     return -1.0;
00008   else if (val > 0)
00009     return 1.0;
00010   return 0.0;
00011 }
00012 
00013 double getSamplingFrequency(double bitrate, double m, double b) {
00014   return m * bitrate + b;
00015 }
00016 
00017 } // End namespace SeaBee3_sonar
Generated on Sun May 8 08:42:06 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3