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

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.perform_highpass(data, len, sampling_rate, cutoff, order, filter_type, ripple));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.perform_highpass(data, len, sampling_rate, cutoff, order, filter_type, ripple));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.perform_highpass(data, len, sampling_rate, cutoff, order, filter_type, ripple));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }