Ejemplo n.º 1
0
        public static int perform_bandstop(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_bandstop(data, len, sampling_rate, center_freq, band_width, order, filter_type, ripple));

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

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

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

            return((int)CustomExitCodes.GENERAL_ERROR);
        }