Пример #1
0
 public static int get_avg_band_powers(double[] data, int rows, int cols, int sampling_rate, int apply_filters, double[] avgs, double[] stddevs)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.get_avg_band_powers(data, rows, cols, sampling_rate, apply_filters, avgs, stddevs));
     }
     else
     {
         return(DataHandlerLibrary32.get_avg_band_powers(data, rows, cols, sampling_rate, apply_filters, avgs, stddevs));
     }
 }
Пример #2
0
        public static int get_avg_band_powers(double[] data, int rows, int cols, int sampling_rate, int apply_filters, double[] avgs, double[] stddevs)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.get_avg_band_powers(data, rows, cols, sampling_rate, apply_filters, avgs, stddevs));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.get_avg_band_powers(data, rows, cols, sampling_rate, apply_filters, avgs, stddevs));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.get_avg_band_powers(data, rows, cols, sampling_rate, apply_filters, avgs, stddevs));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.get_avg_band_powers(data, rows, cols, sampling_rate, apply_filters, avgs, stddevs));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }