bpmprocess/int_to_double_waveform.c

Go to the documentation of this file.
00001 
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 
00008 #include <bpm/bpm_messages.h>
00009 #include <bpm/bpm_process.h>
00010 
00020 int int_to_double_waveform( double *wf_double, int *wf_int, int ns) {
00021 
00022   int i;
00023   
00024   if ( ! wf_int  || ! wf_double ) {
00025     bpm_error( "Invalid waveform pointers in int_to_double_waveform(...)",
00026                __FILE__, __LINE__ );
00027     return BPM_FAILURE;
00028   }
00029 
00030   for( i=0; i<ns; i++ ) { 
00031     wf_double[i] = (double)wf_int[i];
00032   }
00033 
00034   return BPM_SUCCESS;
00035 }
00036 
00037 

Generated on Thu Jan 10 10:18:04 2008 for libbpm by  doxygen 1.5.1