Example #1
0
 public static int perform_downsampling(double[] data, int len, int period, int operation, double[] filtered_data)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.perform_downsampling(data, len, period, operation, filtered_data));
     }
     else
     {
         return(DataHandlerLibrary32.perform_downsampling(data, len, period, operation, filtered_data));
     }
 }
        public static int perform_downsampling(double[] data, int len, int period, int operation, double[] filtered_data)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.perform_downsampling(data, len, period, operation, filtered_data));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.perform_downsampling(data, len, period, operation, filtered_data));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.perform_downsampling(data, len, period, operation, filtered_data));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.perform_downsampling(data, len, period, operation, filtered_data));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }