コード例 #1
0
 public static int get_psd_welch(double[] data, int data_len, int nfft, int overlap, int sampling_rate, int window, double[] output_ampls, double[] output_freqs)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.get_psd_welch(data, data_len, nfft, overlap, sampling_rate, window, output_ampls, output_freqs));
     }
     else
     {
         return(DataHandlerLibrary32.get_psd_welch(data, data_len, nfft, overlap, sampling_rate, window, output_ampls, output_freqs));
     }
 }
コード例 #2
0
        public static int get_psd_welch(double[] data, int data_len, int nfft, int overlap, int sampling_rate, int window, double[] output_ampls, double[] output_freqs)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.get_psd_welch(data, data_len, nfft, overlap, sampling_rate, window, output_ampls, output_freqs));

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

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

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

            return((int)CustomExitCodes.GENERAL_ERROR);
        }