Example #1
0
 public static int get_psd(double[] data, int data_len, int sampling_rate, int window, double[] output_ampls, double[] output_freqs)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.get_psd(data, data_len, sampling_rate, window, output_ampls, output_freqs));
     }
     else
     {
         return(DataHandlerLibrary32.get_psd(data, data_len, sampling_rate, window, output_ampls, output_freqs));
     }
 }
        public static int get_psd(double[] data, int data_len, int sampling_rate, int window, double[] output_ampls, double[] output_freqs)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.get_psd(data, data_len, sampling_rate, window, output_ampls, output_freqs));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.get_psd(data, data_len, sampling_rate, window, output_ampls, output_freqs));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.get_psd(data, data_len, sampling_rate, window, output_ampls, output_freqs));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.get_psd(data, data_len, sampling_rate, window, output_ampls, output_freqs));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }