Exemple #1
0
 public static int get_band_power(double[] ampls, double[] freqs, int data_len, double start_freq, double stop_freq, double[] res)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.get_band_power(ampls, freqs, data_len, start_freq, stop_freq, res));
     }
     else
     {
         return(DataHandlerLibrary32.get_band_power(ampls, freqs, data_len, start_freq, stop_freq, res));
     }
 }
        public static int get_band_power(double[] ampls, double[] freqs, int data_len, double start_freq, double stop_freq, double[] res)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.get_band_power(ampls, freqs, data_len, start_freq, stop_freq, res));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.get_band_power(ampls, freqs, data_len, start_freq, stop_freq, res));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.get_band_power(ampls, freqs, data_len, start_freq, stop_freq, res));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.get_band_power(ampls, freqs, data_len, start_freq, stop_freq, res));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }