bpmrf/rf_rectify.c

Go to the documentation of this file.
00001 
00005 #include <bpm/bpm_interface.h>
00006 #include <bpm/bpm_rf.h>
00007 #include <bpm/bpm_units.h>
00008 
00016 int rf_rectify( double **IF ) {
00017 
00018   
00019   if ( ! IF ) {
00020     bpm_error( "Invalid IF pointer in rf_rectify(...)",
00021                __FILE__, __LINE__ );
00022     return BPM_FAILURE;
00023   }
00024 
00025   int i;
00026 
00027   // Rectify
00028   for ( i = 0; i < rf_nsamples; i++ ) {
00029 
00030     if ( IF[i][Re] < 0 ) IF[i][Re] *= -1.;
00031 
00032   }  return BPM_SUCCESS;
00033 }
00034 // end of file

Generated on Fri Nov 9 21:17:11 2007 for libbpm by  doxygen 1.5.1