示例#1
0
 public static int perform_bandpass(double[] data, int len, int sampling_rate, double center_freq, double band_width, int order, int filter_type, double ripple)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.perform_bandpass(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));
     }
     else
     {
         return(DataHandlerLibrary32.perform_bandpass(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));
     }
 }
        public static int perform_bandpass(double[] data, int len, int sampling_rate, double center_freq, double band_width, int order, int filter_type, double ripple)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.perform_bandpass(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.perform_bandpass(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.perform_bandpass(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.perform_bandpass(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }